SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to use the KeywordQuery class to connect to a FAST Search Server. I still want to be able to display refiners (much like the default Refiner Web Part).

The default refiner web part supports a RangeMapping type of custom filter for managed properties (which is use with the write managed property to filter based on date ranges "Today", "This Week", "This month" ...). These ranges overlap.

When requesting refiners using KeywordQuery, one adds the refiner as a string "write(discretize=manual/2012-01-01/2012-02-01)".

How do I specify a range mapping here? Note that in the discretize sample, the buckets do not overlap. I need a filter where the ranges DO overlap.

(I am not looking for the custom filter definition-xml for the refiner web part ... I know how that looks ... I just need to know how it gets translated)

The best documentation for refiners and KeywordQuery is here but no word about how range mappings are encoded.

share|improve this question

You have to set CustomRefinementIntervals property on KeywordQuery

share|improve this answer

Your Answer


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.