If you are using the out of the box SharePoint CoreResultsWebParts to show your search query results, you are limited to two options for sorting your results: Relevance (Rank) and Modified Date. What if we want to sort our search results to some other column? This post describes how to write code to create a custom CoreResultsWebPart that lets you sort search result on any column you want. Pretty sweet, so let’s get to it! More...
This is part III in my series about using TaxonomyFields in SharePoint 2010. In this part I will talk about how to search TaxonomyFields. I will show how to set up the metadata properties and how to search TaxonomyFields programmatically. This post continues on my previous posts about this subject:
Part I: Declaration and initialization
Part II: Using taxonomyfields programmatically
Part III: Searching taxonomy fields (you are reading it!)
To use our taxonomyfields in SharePoint search they need to be available in the managed properties of the farm. This works a little bit different with TaxonomyFields than with other fieldtypes. In this example I use the custom contenttype created in part I of this series and make the contained TaxonomyField “My taxonomy field” searchable using SharePoint search.