lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Quail <m...@ctx.com.au>
Subject Re: Range searches for numbers
Date Thu, 06 May 2004 23:00:55 GMT
Reece,

> What's the best way to store numbers for range searching?  If someone
> has some info about this I'd love to see it.

I implemented a "LongField" that encodes any +ve or -ve long into a
string that sorts correctly. I posted that class here:
http://www.mail-archive.com/lucene-dev@jakarta.apache.org/msg04790.html

Doing a String range search should be fairly straight forward from
there. Let me know if you have any problems.

=Matt



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