This tutorial is to show you how to search and rank your data on relevance using Hibernate.
First of all, the Hibernate documentation does a great job on explaining the full scope of it’s search, but I had to make a few updates to get it working with Jersey.
Okay, so let’s begin. The first thing you are going to want to do is import the libraries to your project. In this example we are using Maven, but Gradle is an option as well.
<dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-search-orm</artifactid> <version>5.5.4.Final</version> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-entitymanager</artifactid> <version>5.0.9.Final</version> </dependency>