Add Search Refiner counts

By default, the Refinement Web Part doesn't show refiner counts — that is, the number of results for each refiner value.

For example, if you've enabled the managed property Color as a refiner, the refiner values will be colors, such as Red, Green, and Blue.

You can add refiner counts by changing a value in an HTML file so that the refiner values are shown as Red (10), Green (12), and Blue (8).

  1. On the page that contains the Refinement Web Part, on the Settings menu, click Site Settings.
  2. On the Site Settings page, in the Web Designer Galleries section, click Master pages and page layouts.
  3. On the Master Page Gallery page, click Display Templates.
  4. On the Display Templates page, click Filters.
  5. Open the Filter_Default.html file.
  6. Change the value for ShowCounts to true.
  7. Save the file.

Comments (0)

Skip to main content