MongoDB设置的全文搜索选项 [英] Full text search options for MongoDB setup

查看:114
本文介绍了MongoDB设置的全文搜索选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们计划在MongoDB中存储数百万个文档,非常需要全文搜索。我读了Elasticsearch和Solr是全文搜索的最佳解决方案。

We are planning to store millions of documents in MongoDB and full text search is very much required. I read Elasticsearch and Solr are the best available solutions for full text search.


  • 弹性搜索是否足够成熟,可用于Mongodb全文搜索?我们也在收集藏品。 Elasticsearch是否与Sharded系列一起使用?

  • Is Elastic search is mature enough to be used for Mongodb full text search? We also be sharding the collections. Does Elasticsearch works with Sharded collections?

使用Elasticsearch或Solr的优点和缺点是什么?

What are the advantages and disadvantages of using Elasticsearch or Solr?

MongoDB能够进行全文搜索吗?

Is MongoDB capable of doing full text search?

推荐答案

MongoDB中有一些搜索功能,但不是功能作为搜索引擎。

There are some search capabilities in MongoDB but it is not as feature-rich as search engines.

http://www.mongodb.org/display/DOCS/Full+Text+Search+in+Mongo

我们使用Mongo与Solr进行内容搜索。我们喜欢Solr,因为

We use Mongo with Solr to make content searchable. We prefer Solr because


  • 很容易配置和自定义

  • 它有很大的社区如果你正在使用开源工具,真的很有帮助)

由于我们没有使用ES,所以我不能说太多。您可以在下面的链接中找到关于Solr和ES的一些讨论。

Since we didn't work with ES i could not say much about it. You can found some discussions about Solr vs ES on the links below.

  • Solr vs ES 1
  • Solr vs ES 2
  • Solr vs ES 3

这篇关于MongoDB设置的全文搜索选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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