lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zheng Lin Edwin Yeo <>
Subject Difference between currency fieldType and float fieldType
Date Tue, 06 Dec 2016 03:45:52 GMT

Would like to understand better between the currency fieldType and float

If I were to index a field that is a currency field by nature (Eg: amount)
into Solr, is it better to use the currency fieldType as compared to the
float fieldType?

I found that for the float fieldType, if the amount is very big, the last
decimal place may get cut off in the index. For example, if the amount in
the original document is 800212.64, the number that is indexed in Solr is

Although by using the currency fieldType will solve this issue, but however
I found that I am not able to do faceting on currency fieldType. I will
need to have the facet so that I can list out the various amount that are
available based on the search criteria.

As such, will like to seek your recommendation to determine which fieldType
is best for my needs.

I'm using Solr 6.2.1


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message