Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate solr or elasticsearch with JPA?

How do elasticsearch or solr integrate with JPA so the index is kept up to date with the data?

like image 895
LuckyLuke Avatar asked Sep 15 '12 08:09

LuckyLuke


2 Answers

Here are a couple of options you can do to keep Solr and data source in sync:
How to keep Lucene index synchronized with Mysql database?

Spring (Roo):
http://static.springsource.org/spring-roo/reference/html/base-solr.html

like image 39
Marko Bonaci Avatar answered Sep 19 '22 23:09

Marko Bonaci


One option is using Hibernate & Hibernate search while connecting Hibernate search to Solr.
You can get a brief overview here: Combining the power of Hibernate Search and Solr
It will require some work, but not too much (1-2 days of work should be enough).
Let me know if you need more details.

like image 126
Avner Levy Avatar answered Sep 20 '22 23:09

Avner Levy