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:07:23 GMT
Uwe

Thanks for the suggestion.

When I inspect the query in Eclipse, I can clearly see that a 
NumericRangeQuery is constructed.

Why would this query work in an older version of Lucene but not 4.0.0.?

Jamie

On 2014/07/16, 11:45 AM, Uwe Schindler wrote:
> If you index as a long field, you have to use NumericRangeQuery to query. A simple TermRangeQuery
as created by QueryParser does not work, because it cannot handle numeric fields.
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
>


---------------------------------------------------------------------
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