Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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">
    <OriginalValue>bdc3%3A%2F%2Fmy_old_value%2Fdefault%22</OriginalValue>
  </CustomFilter>
</CustomFilters>

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.
share|improve this question
    
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 :-(. –  Kirk Liemohn Feb 14 '12 at 15:59

1 Answer 1

up vote 0 down vote accepted

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.

share|improve this answer
    
I'll mark this as correct for now, but would love for someone else to show me an easier way. –  Kirk Liemohn Feb 16 '12 at 18:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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