Fast for Sharepoint 2010 – How To Add Content Type To Refinement Panel


1) Set the refiner property

The first problem will here to find the managed properties area for fast 🙂 The managed properties is not under Central Administration > Manage Service Applications > FAST Query > Metadata Properties

you have to navigate to: Central Administration > Manage Service Applications > FAST Query> FAST Search Administration > Managed Properties

– you haven’t to add a new property like sharepoint search, just go to the properties of ‘ContentType’ and check the options “Refiner Type” and “Deep Refiner”.

2) Start a full crawl.

3) Go to the refinement panel web part options and add a new category  to -> Options > Refinement -> Filter Category Definiton

<Category Title=”Content Type” Description=”The content type of the item”
                      Type=”Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator”
                      MetadataThreshold=”5″ NumberOfFiltersToDisplay=”4″ MaxNumberOfFilters=”0″
                      SortBy=”Frequency” SortDirection=”Descending” SortByForMoreFilters=”Name”
                      SortDirectionForMoreFilters=”Ascending” ShowMoreLink=”True”
                     MappedProperty=”ContentType” MoreLinkText=”show more” LessLinkText=”show fewer”/>

4) Uncheck “use default configuration”.

Olaaaaaa 🙂

 

 

Update: 7/19/2012:

If you want to add custom values to the refinement panel, you have to add a category filter. Attention: Content type value have to be an ID not the content type name!

1) Copy the url of content type, for example: of ITEM:

 

2) Encode url and take the content type id’s value:

 

3) Go to the refinement panel web part options and add a new category  to -> Options > Refinement -> Filter Category Definiton

and add your category filter:

<Category Title=”Content Type” Description=”The content type of the item” 
                      Type=”Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator” 
                      MetadataThreshold=”5″ NumberOfFiltersToDisplay=”4″ MaxNumberOfFilters=”0″ 
                      SortBy=”Frequency” SortDirection=”Descending” SortByForMoreFilters=”Name” 
                      SortDirectionForMoreFilters=”Ascending” ShowMoreLink=”True” 
                     MappedProperty=”ContentType” MoreLinkText=”show more” LessLinkText=”show fewer”>

<CustomFilters MappingType=”ValueMapping” DataType=”String” ValueReference=”Absolute” ShowAllInMore=”False”>
<CustomFilter CustomValue=”MY CUSTOM TEXT“>
<OriginalValue>AQRJdGVtC2NvbnRlbnR0eXBlAQFeASQ=</OriginalValue>
</CustomFilter>
</Category>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s