user2524574
user2524574

Reputation: 109

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?

Upvotes: 5

Views: 609

Answers (2)

Martin Braun
Martin Braun

Reputation: 602

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

Upvotes: 2

Yosef-at-Panaya
Yosef-at-Panaya

Reputation: 706

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)

Upvotes: 4

Related Questions