You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Kissue Kissue <ki...@gmail.com> on 2011/09/14 15:24:11 UTC

BigDecimal data type

Hi,

Is there a way to use BigDecimal as a data type in solr? I am using solr
3.3.

Thanks.

Re: BigDecimal data type

Posted by Chris Hostetter <ho...@fucit.org>.
: Is there a way to use BigDecimal as a data type in solr? I am using solr
: 3.3.

if you just want to *store* BigDecimals in a solr index, then just use 
StrField with the canonical representation -- but if you want to sort or 
do range queries on the values, then no.

Given that BigDecimal values allow for an arbitrary-precision unscaled 
value, i don't know if it would even be possible to BigDecimal values in a 
way that would allow arbitrary values to sort properly as Terms.

-Hoss