有没有集成CouchDb和Solr的项目?
我希望能够使用 Solr 搜索 CouchDB 数据库。有没有提供这样的集成的项目?
我还知道 CouchDB-Lucene。有没有办法让 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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
除了向 ElasticSearch 提供 JSON 之外,还有一个 CouchDB 与 ElasticSearch 集成 可用靠你自己。两者都使用无模式 JSON,因此集成它们非常容易。
在功能方面,ElasticSearch 将提供与 Solr 相当的功能集(当然,除了一些独特的功能之外。)
There is a CouchDB integration for ElasticSearch available, apart from feeding ElasticSearch with JSON on your own. Both work with schema-less JSON, so it's very easy to integrate them.
In terms of features, ElasticSearch would offer a comparable set to Solr (in addition to some unique features, of course.)
根据这个
http://wiki.apache.org/couchdb/Related_Projects
有一个 CouchDB- Solr2 项目(向下滚动到最后),不再维护。
According to this
http://wiki.apache.org/couchdb/Related_Projects
there was a CouchDB-Solr2 project (scroll down to the end), which is no longer maintained.
考虑到它是多么容易,自己推出会更有意义。首先,您需要决定使用哪种 SOLR 模式以及如何将 CouchDB 文档映射到该模式。然后简单地迭代数据库中的所有文档 CouchDB 中的分页? 并生成 SOLR
<添加>
文档。人们一直在使用各种数据源来执行此操作。由于 SOLR 本质上是搜索单个表,因此困难的工作通常是弄清楚如何将数据库格式映射到单个表上。了解可以使用 SOLR 模式做什么,您可能会惊讶于这是多么容易。
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.