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

查看:32
本文介绍了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.

  • Elastic 搜索是否成熟到可以用于 Mongodb 全文搜索?我们还将对集合进行分片.Elasticsearch 是否适用于分片集合?

  • 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.

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

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