lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message