Re: Why do range queries work on fields only ?

2009-03-04 Thread Raymond Balmès
I'm in the design phase and not used lucene so far... that should come pretty soon though. The range query that I have been looking at in the API documentation and the code, calls for a field name and subsequently search a field for range (example of date searching)... and I did not see operators

Re: Why do range queries work on fields only ?

2009-03-04 Thread Raymond Balmès
Erick, Sorry I meant the first option as in the range query for fields. Ok will look at the span query most of the time the number of terms will small, although there is one use case where it could go up to 50 consecutives terms. -Raymond- On Tue, Mar 3, 2009 at 9:30 PM, Erick Erickson wrote: >

RE: Why do range queries work on fields only ?

2009-03-03 Thread Steven A Rowe
Hi Raymond, On 3/3/2009 at 1:19 PM, Raymond Balmès wrote: > On Tue, Mar 3, 2009 at 7:18 PM, Raymond Balmès > wrote: > > Just a simplified view of my problem : > > > > A document contains the terms "index01 blabla index02 xxx yyy index03 > > ... index10". I have the terms indexed in the collection

Re: Why do range queries work on fields only ?

2009-03-03 Thread Erick Erickson
But it's still not clear what the semantics of your search are. Do you mean "I want index04, index05, index06, index07 and index08 to appear in that order in the field"? If so you can use one of the SpanQuery family, specifying a large slop and respecting order. But this could get clumsy with large

Re: Why do range queries work on fields only ?

2009-03-03 Thread Raymond Balmès
sorry [index04 TO index 08] On Tue, Mar 3, 2009 at 7:18 PM, Raymond Balmès wrote: > Just a simplified view of my problem : > > A document contains the terms "index01 blabla index02 xxx yyy index03 ... > index10". I have the terms indexed in the collection. > I now want to look for documents whic

Re: Why do range queries work on fields only ?

2009-03-03 Thread Raymond Balmès
Just a simplified view of my problem : A document contains the terms "index01 blabla index02 xxx yyy index03 ... index10". I have the terms indexed in the collection. I now want to look for documents which contains [page04 TO page08]... looks like I can't do it -RB- On Tue, Mar 3, 2009 at 6:33 PM

RE: Why do range queries work on fields only ?

2009-03-03 Thread Steven A Rowe
Hi Raymond, On 3/3/2009 at 12:04 PM, Raymond Balmès wrote: > The range query only works on fields (using a string compare)... is > there any reason why it is not possible on the words of the document. > > The following query [stringa TO stringb] would just give the list of > documents which cont

Why do range queries work on fields only ?

2009-03-03 Thread Raymond Balmès
Hi all, The range query only works on fields (using a string compare)... is there any reason why it is not possible on the words of the document. The following query [stringa TO stringb] would just give the list of documents which contains words between those two strings. -RB-