Or you could write your own Analyzer and Tokenizer to produce single values corresponding, say, to the start of each range.
Jon > -----Original Message----- > From: Jae Joo [mailto:[EMAIL PROTECTED] > Sent: 27 August 2007 16:46 > To: solr-user@lucene.apache.org > Subject: Re: range index > > I could build index with Sales Vol ranges using > PatternReplaceFilterFactory > > > <filter class="solr.PatternReplaceFilterFactory" > pattern="(^000[1-4].*)" replacement="10M - 50M" > replace="all" > /> > <filter class="solr.PatternReplaceFilterFactory" > pattern="(^000[5-9].*)" replacement="50M - 100M" > replace="all" > /> > <filter class="solr.PatternReplaceFilterFactory" > pattern="(^00[1-9].*)" replacement="100M - > 1B" replace="all" > /> > <filter class="solr.PatternReplaceFilterFactory" > pattern="(^0[1-9].*)" replacement="\>1B" replace="all" > /> > > Thanks, > > Jae > On 8/27/07, Erik Hatcher <[EMAIL PROTECTED]> wrote: > > > > > > On Aug 27, 2007, at 9:48 AM, Jae Joo wrote: > > > That works. But I am looking how to do that at INDEXING > TIME, but at > > > query time. > > > > > > Any way for that? > > > > I'm not sure I understand the question. The example provided works > > at query time. If you want to bucket things at indexing time you > > could do that, but no real reason to with Solr's caching making the > > range buckets fast at query time. > > > > Could you elaborate on what you are trying to do? > > > > Erik > > > > > > > > > > > > Thanks, > > > > > > Jae > > > > > > On 8/27/07, Erik Hatcher <[EMAIL PROTECTED]> wrote: > > >> > > >> > > >> On Aug 27, 2007, at 9:32 AM, Jae Joo wrote: > > >>> Is there any way to catagorize by price range? > > >>> > > >>> I would like to do facet by price range. (ex. 100-200, 201-500, > > >>> 501-1000, > > >>> ...) > > >> > > >> Yes, look at using facet queries using range queries. > There is an > > >> example of this very thing here: > > >> > > >> <http://wiki.apache.org/solr/ > > >> > SimpleFacetParameters#head-1da3ab3995bc4abcdce8e0f04be7355ba19e9b2c > > >> > > > >> > > >> Erik > > >> > > >> > > > > >