I am able to get all Managed Metadata Columns to show up by adding this to my Filter Category Definition:

<Category    Title="Managed Metadata Columns"    
             Description="Managed metadata of the documents"                 
             Type="Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator"
             MetadataThreshold="3"
             NumberOfFiltersToDisplay="3"
             MaxNumberOfFilters="20"
             ShowMoreLink="True"
             MappedProperty="ows_MetadataFacetInfo"
             MoreLinkText="show more"
             LessLinkText="show fewer" />

The problem is that it shows all Managed Metadata columns in whatever order it wants. Is there a way for me to show only the columns I want and in the order I want in my refinement panel?

link|improve this question

feedback

1 Answer

You can set the Title attribute value to the name of the field you'd like to display (spshjobtitle in the example below). Any managed properties explicitly listed this way aren't going to be included again in the generic Managed Metadata Columns category.

<Category   Title="spshjobtitle"    
        Description="Use this filter to restrict results to a specific job title"    
        Type="Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator"    
        MetadataThreshold="3"    
        NumberOfFiltersToDisplay="3"    
        MaxNumberOfFilters="50"        
        ShowMoreLink="True"    
        MappedProperty="ows_MetadataFacetInfo"    
        MoreLinkText="show more"        
        LessLinkText="show fewer"/>

Refer to the Category [Refinement] article on MSDN.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.