Offer compiler or runtime error if range types are incompatible in range faceting

Description

None

Environment

None

Activity

Show:
Emmanuel Bernard
May 29, 2013, 3:58 PM

Today

would silently fail if ticketPrices.min is of Float type. It would put results in the wrong range as the Float from the index would be interpreted as an Integer.

Possible solutions:

have the Query DSL provide the boundary type to make the problem more explicit

Have field bridge optionally publish their object type

That way, the query DSL can check for consistency and raise a runtime exception if a mismatch occurs (or even do implicit conversion?).

Yoann Rodière
May 27, 2020, 8:38 AM

Fixed in Hibernate Search 6, as the aggregation DSL is type-safe.

Assignee

Yoann Rodière

Reporter

Emmanuel Bernard

Labels

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure