lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jamie <ja...@mailarchiva.com>
Subject Re: lucene 4.0.0 range query broken?
Date Wed, 16 Jul 2014 10:40:04 GMT
Sorry to suggest that it was a Lucene bug. It is rare we encounter 
Lucene bugs - a testament to your code quality. Much appreciate!

On 2014/07/16, 12:33 PM, Jamie wrote:
> Uwe
>
> Thank you.
>
> I think your earlier hint regarding precision steps solved it.  I 
> noticed that new Long was created with a precision step of 4, but my 
> range query was creating  precision step of 8.
>
> return NumericRangeQuery.newLongRange(field.getIndexField(), 8,
> Long.parseLong(query.getLowerTerm().utf8ToString()),
> Long.parseLong(query.getUpperTerm().utf8ToString()),
>                     query.includesLower(), query.includesUpper());


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message