I'm in the process to customize a search results page and I'm using the Refinement WebPart to target some metadata for which the client wants some drill-down. The client is bilingual, and wants to have the option to selecte the "Detected Language" category to filter the french and the english documents.
I'm using FAST, so all of that is easily configurable with a Category element in the Refinement WebPart. All the example I'm looking at on the web seem to be working and are easy to reproduce. But not for me.
I'm using that code to create the new category.
<Category
Title="Detected Languages"
Description="Use this filter to restrict results to detected languages"
Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator"
MetadataThreshold="1"
NumberOfFiltersToDisplay="3"
MaxNumberOfFilters="3"
ShowMoreLink="False"
MappedProperty="DetectedLanguage"
ShowCounts="Count"/>
This code works fine. Only one problem : The language options are not "fr" or "en", but "12" and "9"! FAST is bringing back the ID instead of the name of the languages.
What are my options ?