Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate full text search in Spring-data-jpa?

Is there a way to integrate full text search with spring data jpa? I am used to use hibernate search in my project.

Hibernate search(Hibernate Search brings the power of full text search engines to the persistence domain model by combining Hibernate Core with the capabilities of the Apache Lucene™ search engine.) can work with traditional jpa properly.

Now I am going to move to spring data jpa.What's the best practice to implement full text search?

like image 646
Tom Avatar asked May 21 '12 02:05

Tom


1 Answers

Using Spring Data JPA shouldn't make any difference regarding the usage of your domain model for indexing. It's a thin layer on top of JPA to ease query execution to the most part.

like image 113
Oliver Drotbohm Avatar answered Oct 13 '22 11:10

Oliver Drotbohm