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