如何将 MongoDB 与 Solr 集成?
我以前见过这个问题,但从未收到真正的答案 - 所以我想知道..有人可以指出我如何将 mongoDB 与 Solr 集成的正确方向吗?我正在寻找伪实时和最终的一致性。
做过这件事的人可以透露一些信息吗?
如果有帮助的话,我还将 PHP/Zend 与 Doctrine Mongo 一起使用。
提前致谢
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?
I'm also using PHP/Zend with Doctrine Mongo if that helps.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我还没有进行任何集成,我相信您已经用谷歌搜索过,但是...
http://nosql.mypopescu.com/post/383437318/integrating-mongodb-with-solr
http://blog.knuthaugen.no/2010/04/cooking -with-mongodb-and-solr.html
使用“伪实时”解决方案时,您可能会遇到的问题是性能,具体取决于您的容量。高提交量的 Solr 性能并不是最好的。换句话说,与其说它是实时索引解决方案,不如说它是批量索引解决方案。根据您实际执行的操作,这对您来说可能是问题,也可能不是问题。
ElasticSearch(上面提到的)最近在博客圈中引起了很大的轰动,而且它有一个 JSON api,所以如果您使用 MongoDB,您可能想看看它。我在执行操作时遇到了这些性能指标一些关于实时提交的研究(不过我从未使用过 ElasticSearch)。
AFAIK,ElasticSearch 只有一位(高度敬业的)贡献者。
I haven't done any integration, and I'm sure you've already googled, but...
http://nosql.mypopescu.com/post/383437318/integrating-mongodb-with-solr
http://blog.knuthaugen.no/2010/04/cooking-with-mongodb-and-solr.html
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 (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, there is only one (highly dedicated) contributor to ElasticSearch.