Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

293
Views
Hibernate Search usage, when to use and why

I have a simply question, because today it was the first time I met and used Hibernate Search. Can somebody explain me simply what are the adventages of using Hibernate Search with JPA annotations, does it make sense to use it instead of Spring Data ( I mean CRUD/JPA repositories )? When is Hibernate Search most profitable?

E.g. I have simple SpringMVC webapp, with Users and Events. User should be able to view lists of events on pages, with sorting option.

He should be able to search for specific events by given "fields". In that case should I use CRUD/JPA repos or work with Hib Search?

Thank you in advance!

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

As you can see in the documentation, Hibernate Search is mainly used for full text search, clustering and indexing results rather than just fetching database tables which is naturally provided with Spring data, HQL and Criteria API...

So in this case Hibernate Search is used for high-performance text search and plays the role of a text search engine (Lucene, Sphinx...).

In your case:

So if you are developing a basic web application where you just need to query some entities from the database, you should simply use Spring data, JPQL, core Hibernate HQL or Criteria API.

about 4 years ago · Santiago Trujillo Report

0

There are a number of good articles on this. An example can be found here. However in the interests of a non-link answer you should use Hibernate search if the majority of your searching is full text (fuzzy searches, wildcards, geospatial etc.) Otherwise if you're more interested in DB joins, sorts etc. just use SQL.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!