Fixed
Details
Assignee
Yoann RodièreYoann RodièreReporter
Marco PerazzoMarco PerazzoComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Yoann Rodière
Yoann RodièreReporter
Marco Perazzo
Marco PerazzoComponents
Fix versions
Affects versions
Priority
Created November 11, 2016 at 9:40 AM
Updated December 19, 2016 at 10:48 PM
Resolved December 8, 2016 at 10:55 PM
When we have a NumricRangeQuery against an indexed date field, GSON sometimes converts the min and max value to a long value with scientific notation. Elasticsearch is unable to parse that value and fails.
Hibernate Search should configure GSON in a way that it does not output a long with scientific notatation when it has a query against a date value.
We have indexed fields like this:
And build queries against those fields like this:
Hibernate Search builds the following JSON request out of this query:
Elasticsearch then fails with this error:
Tested with Elasticsearch 2.3.5 and 2.4.1