I have a spring boot, Spring Data JPA (hibernate) web application and want to introduce text search feature.
I understand the following
Both hibernate search or spring-data-* can be integrated into my app
Hibernate search can work with embedded Lucene or external elastic search.
External elastic search/ solr has its own benefits, but I am ok with
embedded also to start with.
My questions
I'm obviously biased since I am a Hibernate developer, but I can at least provide some elements focused on Hibernate Search. As to which is "better", that's for you to judge.
The main difference is that Hibernate Search provides integration between JPA and your index of choice (Lucene or Elasticsearch):
As far as I understand, Spring-Data-Elasticsearch is focused on accessing Elasticsearch and has no JPA integration whatsoever. That is to say, you can use Spring-Data-JPA, and you can use Spring-Data-Elasticsearch, but they won't communicate with each other. You will have two separate models, which you will update and query separately.
Some other elements:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With