RE: Equality Numeric Query

2009-11-11 Thread Uwe Schindler
inal Message- > From: Shai Erera [mailto:ser...@gmail.com] > Sent: Wednesday, November 11, 2009 3:26 PM > To: java-user@lucene.apache.org > Subject: Re: Equality Numeric Query > > Thanks a lot for the super fast response ! > > Shai > > On Wed, Nov 11, 2009 a

Re: Equality Numeric Query

2009-11-11 Thread Shai Erera
> > From: Shai Erera [mailto:ser...@gmail.com] > > Sent: Wednesday, November 11, 2009 3:17 PM > > To: java-user@lucene.apache.org > > Subject: Re: Equality Numeric Query > > > > Thanks ! > > > > If I use Yonik's approach, do I need to index

RE: Equality Numeric Query

2009-11-11 Thread Uwe Schindler
No. - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Shai Erera [mailto:ser...@gmail.com] > Sent: Wednesday, November 11, 2009 3:17 PM > To: java-user@lucene.apache.org > Subject: Re: E

Re: Equality Numeric Query

2009-11-11 Thread Shai Erera
Thanks ! If I use Yonik's approach, do I need to index the terms in a special way? Shai On Wed, Nov 11, 2009 at 4:13 PM, Uwe Schindler wrote: > Hi Shai, > > In 2.9.1, the approach using upper/lower bound identical and included is > the > official supported usage. The Query is optimized to rewr

RE: Equality Numeric Query

2009-11-11 Thread Uwe Schindler
Hi Shai, In 2.9.1, the approach using upper/lower bound identical and included is the official supported usage. The Query is optimized to rewrite efficient in this case (constant score term query). But you can also use a TermQuery like Yonik suggested and converting the numbers yourself. You wil

Re: Equality Numeric Query

2009-11-11 Thread Yonik Seeley
On Wed, Nov 11, 2009 at 8:54 AM, Shai Erera wrote: > I index documents with numeric fields using the new Numeric package. I > execute two types of queries: range queries (for example, [1 TO 20}) and > equality queries (for example 24.75). Don't mind the syntax. > > Currently, to execute the equali