diff --git a/public/templates/search.tpl b/public/templates/search.tpl index 9bea91611c..0f2ad27a30 100644 --- a/public/templates/search.tpl +++ b/public/templates/search.tpl @@ -15,41 +15,54 @@ diff --git a/src/routes/api.js b/src/routes/api.js index d1e7da2fb9..45e9514ce8 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -270,7 +270,9 @@ var path = require('path'), show_results: '', search_query: req.params.term, posts: results[0], - topics: results[1] + topics: results[1], + post_matches : results[0].length, + topic_matches : results[1].length }); }); } else {