Range queries on fields with a custom MetadataProvidingFieldBridge may not detect numeric-ness correctly

Description

We do this:

Thus, if there is a custom MetadataProvidingFieldBridge that overrides the field type for its default field, we completely ignore the override (we only check DocumentFieldMetadata, which is only about @NumericField and whether the field bridge implements EncodingBridge).
Maybe the simplest solution would be to take the output of MetadataProvidingFieldBridge into account when setting the value of DocumentFieldMetadata.isNumeric()... ? See org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.isNumericField(NumericField, FieldBridge).

Note: we may have a similar issue with other types of queries (keyword() in particular).

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Fix versions

Affects versions

Priority

Major
Configure