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.
That way, the query DSL can check for consistency and raise a runtime exception if a mismatch occurs (or even do implicit conversion?).
Fixed in Hibernate Search 6, as the aggregation DSL is type-safe.