Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Lucene/Solr with Spring Data

I am using Spring Data (Mongo) for my web application (close to a social networking website). Now, I wish to provide search capabilities over the content written within the application (such as posts, tags, friends, etc.).

I believe Lucene/Solr is one of the better libraries to go for such cases, but am not sure how to use (integrate?) it with Spring Data (or maybe there is some inherent support within Spring for it).

Would appreciate help (documentation, links, blog posts, etc.) on this!

like image 636
Saket Avatar asked Dec 28 '22 10:12

Saket


2 Answers

Though the post has been around for a while, you may have a look at this one https://github.com/SpringSource/spring-data-solr/

like image 159
Christoph Strobl Avatar answered Dec 31 '22 11:12

Christoph Strobl


The Spring Data for Solr project provides a natural Spring Data like API for querying data from Solr. Read the examples for a quick overview.

like image 20
busybee Avatar answered Dec 31 '22 13:12

busybee