Missing types in NumericFieldUtils#requiresNumericRangeQuery

Description

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.

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Guillaume Smet

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Trivial
Configure