I met simliar issue before,suggest to use double as field type for this case
Ray
2016年7月21日星期四,Nick Vasilyev 写道:
> Thanks Chris.
>
> Searching for both values and retrieving the documents would be alright as
> long as the data was correct. In this case, the data that I am indexing
> into Solr is
Thanks Chris.
Searching for both values and retrieving the documents would be alright as
long as the data was correct. In this case, the data that I am indexing
into Solr is not the same data that I am pulling out at query time. That is
the real impact here.
On Thu, Jul 21, 2016 at 6:12 PM, Chris
: Hi, I am running into a weird rounding issue on Solr 5.2.1. I have a float
: field (also tried tfloat), I am indexing 154035.26 into it (confirmed in
: the data), but at query time, I get back 154035.27 (.01 more).
: Additionally when I query for the document and include this number in the q
:
I did a bit more investigating here is something that may help
troubleshooting:
- Seems that numbers above 131071 - are impacted. 131071.26 is fine,
but 131072.26 is not. 131071 is a large prime and also a Mersenne prime.
- 131072.24 gets rounded down to 131072.23. While 131072.26 gets rounded up
Hi, I am running into a weird rounding issue on Solr 5.2.1. I have a float
field (also tried tfloat), I am indexing 154035.26 into it (confirmed in
the data), but at query time, I get back 154035.27 (.01 more).
Additionally when I query for the document and include this number in the q
parameter,