You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Urvashi Gadi <ug...@emory.edu> on 2006/01/05 22:42:35 UTC

Handling fractional field range queries

Hi All,

Any pointers on how to handle range queries if the data type is double 
or float?

Best,
Urvashi




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


Re: Handling fractional field range queries

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
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