lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Handling fractional field range queries
Date Fri, 06 Jan 2006 15:53:05 GMT

On Jan 5, 2006, at 4:42 PM, Urvashi Gadi wrote:
> Any pointers on how to handle range queries if the data type is  
> double or float?

There is a bit of this on the wiki:

	<http://wiki.apache.org/jakarta-lucene/SearchNumericalFields>

The main thing to note is that what is indexed in Lucene is text, not  
numbers per se.  It is important to represent the numbers in a  
lexicographically ordered way for range queries to work.

	Erik


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