We use the BDC to crawl data and modify the search results to hide the URLs from the Core Search Results web part. However, in the Refinement Panel web part there is a "Site" refiner that shows our BDC URL. If clicked the BDC url for the refiner URLs in the refiner start looking even worse.

I was hoping to modify the Filter Category Definition in the Refinement Panel web part to replace my bdc URL with something more meaningful. However, a straight replace doesn't work for me. Below is an example where I tried with character encoding for ":" and "/", but I tried without encoding those as well.

<CustomFilters MappingType="ValueMapping" DataType="String" ValueReference="Absolute"                 ShowAllInMore="False">
  <CustomFilter CustomValue="My New Value">

Any ideas? Even if I can replace this one "site", I still have two problems:

  1. The other sites are not shown. I guess I have to enter an for each of those, but I won't know those ahead of time. I was hoping that if they were not listed that they would just not be modified.
  2. If I click on my site's link in the refiner, it will still likely show an ugly URL underneath it. I really need a "Relative" ValueReference and use wildcards or something. I have only seen relatively value references with dates and numbers, though.
  • Quick update. The refinement panel was not showing the entire "sitename". It was only showing a portion. If I include the entire value then it appears to work (somewhat). My site now shows as a refinement option, but none of the others do :-(. Feb 14 '12 at 15:59

It looks like the answer may have to be to extend Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator and override it to handle our BCS content properly. Far from an ideal solution.

  • I'll mark this as correct for now, but would love for someone else to show me an easier way. Feb 16 '12 at 18:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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