Fixed
Details
Assignee
Guillaume SmetGuillaume SmetReporter
Guillaume SmetGuillaume SmetComponents
Fix versions
Affects versions
Priority
Trivial
Details
Details
Assignee
Guillaume Smet
Guillaume SmetReporter
Guillaume Smet
Guillaume SmetComponents
Fix versions
Affects versions
Priority
Created April 11, 2016 at 8:31 AM
Updated May 21, 2016 at 6:43 PM
Resolved May 11, 2016 at 1:53 PM
This is a followup of https://github.com/hibernate/hibernate-search/pull/1046 .
Note that the logic of NumericFieldUtils#requiresNumericRangeQuery is wrong in the general case as a type might be numeric or string depending on the backend used (see Date for the Elasticsearch backend for instance).
It is used as a fallback when we don't have a DocumentFieldMetadata. It's documented as being used in the Infinispan case (see ConnectedMultiFieldsRangeQueryBuilder#createQuery) but it's currently also used for bridge defined fields which are not registered as DocumentFieldMetadata. In this latter case, we currently only support string and numerics so it won't be an issue.