Showing items counts in SharePoint 2010 Search Refinement Panel
Bringing search count in refinement panel of SharePoint 2010 search result page is very easy and straight forward.
- Edit the page containing the search result page with refinement panel.
- Go to the web part properties of refinement panel.
- Expand the “Refinement” section and edit “Filter Category Definition”
- For each “Category” add ShowCounts=”Count”
- Check-in and publish the page
<Category Title="Title" Description="Use this filter to restrict results authored by a specific author" Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator" MetadataThreshold="1" NumberOfFiltersToDisplay="4" MaxNumberOfFilters="20" SortBy="Frequency" SortByForMoreFilters="Name" SortDirection="Descending" SortDirectionForMoreFilters="Ascending" ShowMoreLink="True" MappedProperty="Title" MoreLinkText="show more" LessLinkText="show fewer" ShowCounts="Count"/>
If the count doesn’t show up, then uncheck the “Use Default Configuration” checkbox under the same “Refinement” section.