lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@lucene.com>
Subject Re: Bug? QueryParser may not correctly interpret RangeQuery text
Date Wed, 26 Jun 2002 16:49:30 GMT
Brian Goetz wrote:
> The only part I'm not sure about here is what to do with negative
> numbers.  I'm sure there's some representation which gives the desired
> result when sorted lexicographically; Doug?  

Two's complement comes to mind.  Convert to two's complement and print 
as hex, padded to 32 bits, or 64 if you want to be able to intermix ints 
and longs.  Floats work too: convert the pre-decimal part to two's 
complement and pad.

Doug


--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message