Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a project that integrates CouchDb and Solr?

I would like to be able to search a CouchDB database using Solr. Are there any projects that provide such an integration?

I am also aware of CouchDB-Lucene. Is there a way to hook Solr into that?

Thanks!

like image 556
David V Avatar asked Jun 17 '11 13:06

David V


1 Answers

It would make more sense to roll your own, given how wasy it easy. First you need to decide what kind of SOLR schema to use and how to map your CouchDB documents onto that schema. Then simple iterate through all the documents in a db Pagination in CouchDB? and generate SOLR <add> documents.

People do this all the time with all kinds of data sources. Since SOLR is essentially searching a single table, the hard work is often figuring out how to map your database format onto a single table. Read up on what you can do with the SOLR schema, and you may be surprised at how easy this is.

like image 167
Michael Dillon Avatar answered Sep 27 '22 19:09

Michael Dillon