Re: solution: RangeQuery with floating point numbers

2006-04-09 Thread Chris Hostetter
you may want to look into the way Solr deals with sortable ints/longs/floats/doubles... http://svn.apache.org/viewcvs.cgi/incubator/solr/trunk/src/java/org/apache/solr/util/NumberUtils.java?view=markup ...it leverages the fact that Java will give you the raw bits of a double/float as an long/int

Re: solution: RangeQuery with floating point numbers

2006-04-09 Thread Paul Elschot
On Sunday 09 April 2006 13:53, Nadav Har'El wrote: > > Hi all, > ... > > By the way, it is worth repeating the warning that appears everywhere > (including Lucene In Action): while this sort of trick works, RangeQuery > is extremely inefficient (and might not even work) when the number of > diff