I am using drupal 7, i am in need of showing the default search functionlity, which shows the searched term content type and how many times the searched keyword occurred in the content type.

The entered keyword will be searched with site wide search and the results will show what are the content type nodes having the keyword and how many times the keyword occurred for the content type. Please help me to solve this problem.

2 Answers 2


display suite offers counts and highlighting, plus you can edit the search-result-display via UI. to get the contenttype there, you'll need to add a custom field, or install search api and use views.


To me, this sounds like you want to facet on the content type. The Faceted Navigation for Search module allows you to do this.

After enabling the module, visit admin/config/search/settings, uncheck the "Node" checbox under "ACTIVE SEARCH MODULES" and check the "Faceted Navigation for Search" checkbox.

Then visit admin/config/search/settings/facets and enable the "Content type" facet. Once the facet is enabled, visit the core Block administration page at admin/structure/block and position the "Facet API: Search : Content type" appropriately.

Now you can execute a search, and you will get the following results:

enter image description here

  • Which solution did you use? It would be great if you could mark the correct answer or post your solution so others can benefit as well! Commented Jun 14, 2012 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.