diff --git a/src/controllers/search.js b/src/controllers/search.js index 5c38c3f79b..0a26822699 100644 --- a/src/controllers/search.js +++ b/src/controllers/search.js @@ -41,6 +41,7 @@ searchController.search = function(req, res, next) { req.query.categories = [req.query.categories]; } + req.query.in = req.query.in || 'posts'; search.search({ query: req.params.term, searchIn: req.query.in,