You can achieve this
by editing the XSLT in Search Core Results web part.
Follow below steps,
Follow below steps,
- Open search site and search for some word.
- Once you see results on your search page.
- Edit the page.
- Now edit Refinement Panel -> Edit Web Part.
- Expand Refinement section.
- Copy XML from Filter Category Definition to XML editor.
- Add new category under <FilterCategories> section.
- Copy and Paste below section.
<Category Title="Site" Description="Which site this document is from"
Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator"
MetadataThreshold="5" NumberOfFiltersToDisplay="4" MaxNumberOfFilters="20"
SortBy="Frequency" SortByForMoreFilters="Name" SortDirection="Descending"
SortDirectionForMoreFilters="Ascending" ShowMoreLink="True" MappedProperty="SiteName"
MoreLinkText="show more" LessLinkText="show fewer" />
- Copy new XML and update Web Part’s Filter Category Definition.
- Close the XSL Editor and save the webparts properties.
- Refresh the page to test it.
0 comments:
Post a Comment