是否有一个集成CouchDb和Solr的项目? [英] Is there a project that integrates CouchDb and Solr?

查看:57
本文介绍了是否有一个集成CouchDb和Solr的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够使用Solr搜索CouchDB数据库。有没有提供这种集成的项目?

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

我也知道CouchDB-Lucene。

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

谢谢!

推荐答案

考虑到这太容易了,滚动自己的游戏更有意义。首先,您需要确定要使用哪种SOLR模式以及如何将CouchDB文档映射到该模式。然后简单地遍历数据库中的所有文档在CouchDB中进行分页?并生成SOLR < add> 文档。

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.

人们一直在使用各种数据源来执行此操作。由于SOLR本质上是在搜索单个表,因此艰苦的工作通常是弄清楚如何将数据库格式映射到单个表。阅读关于您可以使用SOLR模式执行的操作的信息,您可能会对它的简单程度感到惊讶。

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.

这篇关于是否有一个集成CouchDb和Solr的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆