There are two cases to use managed metadata :
1. Show all managed metadata site columns in search refinement panel:
we should use following xml :
This is part of refinement panel xml by default.
This will show all managed metadata and ordering will be created automatically.
2. . Show a specific managed metadata site columns in search refinement panel : For example we want to add a managed metadata column with name "Test ManagedMetaDataCol"
Check the managed property name of the managed meta data column in central administrator, for this column it is like: owstaxIdTestCPBx0020ManagedMetaDataCol
Remove the "owstaxId" from this and use following as title: TestCPBx0020ManagedMetaDataCol
1. Show all managed metadata site columns in search refinement panel:
we should use following xml :
< FilterCategories >
< 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" />
</ FilterCategories >
This is part of refinement panel xml by default.
This will show all managed metadata and ordering will be created automatically.
2. . Show a specific managed metadata site columns in search refinement panel : For example we want to add a managed metadata column with name "Test ManagedMetaDataCol"
Check the managed property name of the managed meta data column in central administrator, for this column it is like: owstaxIdTestCPBx0020ManagedMetaDataCol
Remove the "owstaxId" from this and use following as title: TestCPBx0020ManagedMetaDataCol
< FilterCategories >
< Category
Title="TestCPBx0020ManagedMetaDataCol" 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" />
</ FilterCategories >
This will show only the managed metadata column in search refinement panel filter.