Full text search options for MongoDB setup

前端 未结 7 520
陌清茗
陌清茗 2020-12-23 15:03

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

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-23 15:11

    Currently, in MongoDB 2.4.6, there now IS a full-text search in MongoDB and it is more feature rich, then in previous versions. On http://docs.mongodb.org/manual/core/text-search/ are described the capabilities of the new functionality.

    Worth mentioning:

    • tokenizes and stems the search term(s) during both the index creation and the text command execution. assigns a score to each document that
    • contains the search term in the indexed fields. The score determines the relevance of a document to a given search query.

    However, in this answer (from September 2013) https://stackoverflow.com/a/18631775/1920149 you can see, that mongo still warns from using this functionality in production. This functionality is still in beta stage.

提交回复
热议问题