Note a PR was submitted for Search 5, but it relied on the native Criteria that are now deprecated and (I think) removed in ORM 6, so another approach is necessary. We should definitely take inspiration from that PR, though: https://github.com/hibernate/hibernate-search/pull/1114 |