lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: BigDecimal values
Date Sat, 22 Nov 2008 21:01:56 GMT
On Thu, Nov 20, 2008 at 9:30 AM, Sergey Kabashnyuk <ksmmlist@gmail.com> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message