When your Maven-based project includes the
hibernate-search dependency, it automatically pulls over three dozen related
dependencies for you. Unfortunately, JPA query support is not one of them. To use JPA-style queries, we must declare an extra
hibernate-entitymanager dependency ourselves.
Its version needs to match the version of
hibernate-core that is already in the dependency hierarchy. This will not always be in sync with the
Your IDE may offer a way to present the dependency hierarchy visually. Either way, you can always use Maven from the command line to get the same information with this command:
As shown in this output, Hibernate Search version ...