Requirement: Show refiners count in SharePoint Online Search
SharePoint Online: Search Refiners Count
By default, SharePoint Online search refiners don’t show 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, we just need to change a flag under the display template. Here is how:
- Open your SharePoint Online site in SharePoint Designer (or Map the “Display Templates” Folder as a network drive).
- Navigate to the Path: https://Tenant.sharepoint.com/sites/YOURSITE/_catalogs/masterpage/Display Templates/Filters/
- 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 and rename the display template and then apply the template to the search refiner web part.
- Search for: ShowCounts: false, and replace the flag with ShowCounts: true
- 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 verify refiner counts by entering a query in your search center.
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?