Home | Blog | Screencasts | Projects
# Saturday, February 20, 2010

In MOSS 2007 we could use the codeplex faceted search solution to provide what is now called ‘Search Refiners’ in SharePoint 2010.

 

By default the standard refiner will look like this:

 

image

 

The really nice thing about the refiner is that it will only show a value if a search result is returned for it, so a user will never be faced with clicking on an option and have it return zero results.

But those of us who are familiar with the old faceted search solution will know that the web part displays a count of the results, well the SharePoint 2010 refiner can as well:

 

image

Notice the subtle counts next to the metadata property.

 

This can be achieved by adding the following XML attribute to the refiners configuration xml:

 

Find the <Category>  element that you wish to display counts for and add:   ShowCounts=”Count”

Saturday, February 20, 2010 9:21:00 AM (E. Australia Standard Time, UTC+10:00)  #    Comments [2] - Trackback
Search | SharePoint 2010
Tracked by:
"Building a SharePoint 2010 tag cloud search refiner" (Httpcode) [Trackback]
"http://httpcode.com/blogs/PermaLink,guid,8b267ee2-e214-4187-8e8d-e3c4f092fc66.a... [Pingback]
Friday, February 26, 2010 6:07:24 PM (E. Australia Standard Time, UTC+10:00)
Very nice article on extending search. I was just wondering if you have a practical and more detailed example illustrating how to setup the counts.

Cheers,

Andries
Friday, February 26, 2010 10:27:04 PM (E. Australia Standard Time, UTC+10:00)
What do you mean by setting up the counts? this is done automatically by the webpart?
Comments are closed.
Statistics
Total Posts: 191
This Year: 0
This Month: 0
This Week: 0
Comments: 41