: 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