lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <morus.wal...@tanto.de>
Subject Re: problems search number range
Date Thu, 18 Nov 2004 12:37:05 GMT
d2clon@desarrolladores.org writes:
> 
> this solution was the first that i tried.. but this does not run correctly.. 
> because:
> 
> when we try to sort this number in alphanumeric order we obtain that number 
> -0010 is higher than -0001
> 
right. I failed to see that.
So you would have to use a complement for negative numbers as well e.g. using
-9989 for -10, -9998 for -1, ...

But shifting the interval is easier of course.

Morus

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


Mime
View raw message