See https://discourse.hibernate.org/t/migrating-complex-search-from-hibernate-search-5-to-6/7145/3?u=yrodiere