0

目前最新的MongoDB稳定版是v2.4.6,全文搜索处于beta状态。

哪个会更快:

  1. 创建一个名为“text”的字段并从所有其他字段中提取所有文本信息并将它们连接到字段 - “text”并索引该字段(“text”)

    所以看起来像

     db.collection.ensureIndex( { "text": "text" } );
    
  2. 只需索引所有字段:

    db.collection.ensureIndex( { "$**": "text" } );
    

哪一个在性能和磁盘存储要求方面更好?

4

0 回答 0