On Thu, Nov 20, 2008 at 9:30 AM, Sergey Kabashnyuk <[EMAIL PROTECTED]> wrote:
> Thanks Ian
>
> Unfortunately, I have to index any possible number of java.math.BigDecimal
> I can rephrase my question this way:
>
> How can I convert java.math.BigDecimal numbers in to string
> for its storing in lexicographical order

Some early work I did in Solr handles this for integers (it's pretty
much unused code now though).  The format was designed to support
decimals also, but I never got around to doing the code.

See BCDIntField, and BCDUtils, specifically
BCDUtils.base10toBase10kSortableInt

-Yonik

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to