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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to