如何将MongoDB与Solr集成? [英] How do I integrate MongoDB with Solr?

查看:74
本文介绍了如何将MongoDB与Solr集成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我之前已经看过这个问题,但是从来没有收到过真正的答案,所以我想知道.有人能为我指出如何将mongoDB与Solr集成的正确方向吗?我正在寻找伪实时和最终一致性.

I've seen this question before, but it's never received a real answer- so I was wondering.. Can someone point me in the right direction as to how I can integrate mongoDB with Solr? I'm looking for pseudo real-time and eventual consistency.

完成此操作的任何人都可以阐明一下吗?

Can anyone that's done this shed some light?

如果有帮助,我还将PHP/Zend与Doctrine Mongo结合使用.

I'm also using PHP/Zend with Doctrine Mongo if that helps.

预先感谢

推荐答案

我还没有进行任何集成,并且我确定您已经用Google搜索了,但是...

I haven't done any integration, and I'm sure you've already googled, but...

http://nosql.mypopescu.com/post/383437318/整合mongodb-with-solr

http://blog.knuthaugen.no/2010/04/cooking-with-mongodb-and-solr.html

根据数量的不同,伪实时"解决方案可能会遇到的问题是性能.高提交率的Solr性能并不是最好的.换句话说,它不是实时索引解决方案,而是批处理索引解决方案.取决于您实际正在执行的操作,对您而言可能是问题,也可能不是问题.

The issue you are probably going to run into with a "psuedo real-time" solution, depending on your volume, is performance. Solr performance with high commits isn't the greatest. In other words, its not really so much of a real-time indexing solution as it is a batch indexing solution. Depending on what you're actually doing this may or may not be an issue for you.

ElasticSearch (如上所述)最近在Blogosphere引起了很大的反响,并且它具有JSON api,因此如果您使用的是MongoDB,则可能需要查看一下.在执行操作时,我遇到了这些性能指标有关实时提交的一些研究(不过,我从未使用过ElasticSearch).

ElasticSearch (mentioned above) has been making a lot of noise in the blogosphere lately and it has a JSON api, so you might want to look at it if you're using MongoDB. I've run across these performance metrics when doing some research on real-time commits (I've never used ElasticSearch, though).

AFAIK,ElasticSearch的贡献者只有一个(高度专注).

AFAIK, there is only one (highly dedicated) contributor to ElasticSearch.

这篇关于如何将MongoDB与Solr集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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