lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: NumericField exact match
Date Sat, 27 Feb 2010 14:14:04 GMT
On Fri, Feb 26, 2010 at 3:33 PM, Ivan Vasilev <ivasilev@sirma.bg> wrote:
> Does it matter precision step when I use NumericRangeQuery for exact
> matches?

No.  There is a full-precision version of the value indexed regardless
of the precision step, and that's used for an exact match query.

> I mean if I use the default precision step when indexing that
> fields it is guaranteed that:
> 1. With this query I will always hit the docs that contain "val" for the
> "field";
> 2. I will never hit docs with different that have diferent "val" for the
> "field";

Correct.

-Yonik
http://www.lucidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message