Saturday, May 18, 2013

SP 2010 - Search Refinement Panel properties explained


SharePoint 2010 Search refinement has many properties and typically the following will be helpful when configuring Search

Accuracy Index
The accuracy index plays a major role is generating the refiners.

This settings defines how many items are considered in the creation of refiners. OOB has a value 50. So the first 50 results are considered for generating the refiners. If the search has more than 50 results, those results are not considered for generating the filters and if there is any metadata associated with those results, those will be ignored.

Number of Categories to display

The value defined for this property restricts the number of categories to be displayed in the refinement panel. By default the value is 6, which means only 6 categories will be displayed in the refinement panel. No matter how many refiners are generated. Rest will be ignored. This value is configurable.

Filter Category Definition

This property defines what to display in the refinement panel. The property is a XML data and is configurable. A typical category looks like the following.
<Category    Title="Author"    Description="Use this filter to restrict results authored by a specific author"    Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator"    MetadataThreshold="5"    NumberOfFiltersToDisplay="4"    MaxNumberOfFilters="20"    SortBy="Frequency"    SortByForMoreFilters="Name"    SortDirection="Descending"    SortDirectionForMoreFilters="Ascending"    ShowMoreLink="True"    MappedProperty="Author"    MoreLinkText="show more"    LessLinkText="show fewer" ShowCounts="Count"  />

a) MetadataThreshold (Tags & Metadata separation)
The search refinement panel has a property named MetadataThreshold and it will have a 3 for Tags and Metadata category. This means, when we search for a keyword and if the returned result count is less than 3 then the Tags & Metadata will not be displayed as a separate category and it will be combined and displayed under Tags title. If the returned result count is greater than or equal to 3, then the refinement panel will show separate category for Tags and Metadata. This property value is configurable and must be greater than or equal to 1. The other category like result type, size, author has a value 5, which means these categories will not be shown if the returned result count is less than 5.

b) Count display in the results
To show the number of results returned for that particular refiner, ShowCounts="Count" has to be added in the XML data.

c) Number of Filters to Display
This attribute controls the number of filters to be displayed in the particular category. The value here is 4, which means only 4 filters are displayed in the category and if more filters are available, "show more" text will be displayed.

No comments:

Post a Comment