Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hibernate Search with Eclipse Link

Does anyone know if I can use Hibernate Search with Eclipse Link? Or do I have to use Hibernate as my JPA provider?

like image 817
user2524574 Avatar asked Feb 17 '15 23:02

user2524574


2 Answers

Hibernate search can't be used with another JPA provider... sorry

You have 2 options :

  • switch to Hibernate as your JPA provider

  • use EclipseLink with Solr (and SolrJ java API)

like image 92
Yosef-at-Panaya Avatar answered Oct 31 '22 15:10

Yosef-at-Panaya


I am currently working on a integration of the Hibernate Search Engine that supports any JPA provider you throw at it. It's currently in, hmmm. let's call it late Alpha. Most features work (but I wouldn't suggest using it in production just yet) and you can give it a try with:

https://github.com/s4ke/hibernate-search-genericjpa-example

Some differences for your domain model are:

  1. additional @InIndex annotation for every entity in the index
  2. if you want automatic indexing of your domain model you currently need @Updates annotated tables that map the information about changes in your model.

For more information visit: https://github.com/Hotware/Hibernate-Search-JPA

like image 45
Martin Braun Avatar answered Oct 31 '22 14:10

Martin Braun