Validate preconditions of a field to allow a FacetingRequest

Description

This kind of failure is complex to figure out especially for existing code bases as one might forget to need to explicitly encode a numeric field in old-style form.

For example as a test, take org.hibernate.search.test.query.facet.Car and remove its reference to @FieldBridge(impl = IntegerBridge.class)) on field cubicCapacity.

Let's see if we can validate such a request and fail fast with a sensible error message.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Sanne Grinovero

Labels

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

5.0.0.CR1

Priority

Minor
Configure