Skip to content

Node.js based forum software built for the modern web

default search in posts

barisusakli5e7bf7a27245
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,