Enable the Refiner Count in Share Point 2013


The refiner count show number of item exists in Search Result of that type. Its very easy to enable count number in refinement panel.

Its really enhance the search experience also. Don't why Microsoft has put as disable by default.

Enable Count for Refiner
The easiest configuration is to simply turn counts on for all refinements. This is achieved by modifing the Filter_Default.html and Filter_MultiValue.html display templates.

Step 1:-

Basically you need to change the Display Template for the Refinement Filter which is HTML file.
The File is located in the site collections MasterPage gallery folder, /_catalogs/masterpage/Display Templates/Filters


Step 2:-
Filter_Default.html and contains the definition for the refinement item.


Step 3:-
After Download the file Replace the below section:-

From -
To

Step 4:- 
Change the name of the Display Template
 Upload and Save the file at same location with Publish Version.

Step 5:-
Now Configure the Refinement Panel Web part with new defined template



Step 6:- Now Result should show the count in Refinement panel

Happy Coding and Simple Coding !!

No comments:

Post a Comment