Hibernate ORM deprecated the old Criteria API in favour of the JPA Criteria API.
Hibernate Search uses the old one internally; not least this might generate warnings at runtime which can't be avoided by the end user.