lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Storing numbers
Date Mon, 08 Mar 2004 18:01:51 GMT
Erik Hatcher wrote:
>   private static final DecimalFormat formatter =
>       new DecimalFormat("00000"); // make this as wide as you need

For ints, ten digits is probably safest.  Since Lucene uses prefix 
compression on the term dictionary, you don't pay a penalty at search 
time for long shared prefixes.

Doug

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