On Apr 6, 2010, at 8:44 PM, Blargy wrote:
What would be the best way to do range bucketing on a price field?I'm sort of taking the example from the Solr 1.4 book and I was thinkingabout using a PatternTokenizerFactory with a SynonymFilterFactory. Is there a better way?
For faceting... how many ranges do you have? The simplest option is to index the price as a float, and use facet.query's to give you back counts for the buckets... facet.query=price:[0 TO 100], and so on.
Erik