How to index BigDecimal values in Lucene 3.0.1

Posted by Petteri Hietavirta on Stack Overflow See other posts from Stack Overflow or by Petteri Hietavirta
Published on 2010-04-28T14:08:24Z Indexed on 2010/04/28 14:33 UTC
Read the original article Hit count: 360

I have some BigDecimal values which should be indexed for searching. Lucene has NumericField but it has setters only for long, double, float and int. I could store it as a String but then I would not benefit from NumericRangeQuery.

How you have stored your BigDecimals? Any best practices to share?

© Stack Overflow or respective owner

Related posts about lucene

Related posts about bigdecimal