How to Show Search Refiners Count in SharePoint Online?

Requirement: Show refiners count in SharePoint Online Search.

SharePoint Online: Search Refiners Count

By default, SharePoint Online search refiners don’t show the results count. To enable refiners count, you need to manually modify the display template file used by the search refiner web part. It’s pretty easy, and we just need to change a flag under the display template. Here is how:

  1. Open your SharePoint Online site in SharePoint Designer (or Map the “Display Templates” Folder as a network drive).
  2. Navigate to the Path: Templates/Filters/
  3. Create a backup copy of the “Filter_Default.html” display template and edit the “Filter_Default.html” in Advanced Mode. You can also create a copy, rename the display template, and then apply the template to the search refiner web part.
  4. Search for: ShowCounts: false, and replace the flag with ShowCounts: true
    sharepoint online search refiners count
  5. Save your changes.

If you are using multiple refiner values, repeat the above steps for the HTML file “Filter_MultiValue.html” as well.

Go to your SharePoint Online site to verify refiner counts by entering a query in your search center.

sharepoint online search refiners show count

Here is another post on customizing refinement panel columns in SharePoint Online: SharePoint Online: How to Add a Custom Refiner to Refinement Panel in Search Results?

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

Leave a Reply

Your email address will not be published. Required fields are marked *