Showing Refiner Counts In SharePoint 2013\O365 Search

Requirement:

Showing counts for each refiner

By default, search refiners in SharePoint 2013 don’t show a result count.  But in O365 they show up.

Note: o365

If you have Multi-Selection enabled for refiners then they won’t show up. Refer the bottom section to find the respective template to modify.

Solution: For Single Refiner

To enable them we need to alter the filter display template.

  1. _catalogs\masterpage\Filters\Filter_Default.hml
  2. Change the code as below

showCounts:true

 

singlerefiner

Thanks all folks.

Bonus: When Multi-selection is enabled:

Do the same for Filter_MultiValue.html

refiners_counts

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Powered by WordPress.com.

Up ↑

%d bloggers like this: