【发布时间】:2018-04-01 10:58:25
【问题描述】:
我正在使用 pymongo 在 mongodb 上执行全文搜索。 当我在搜索中只使用一个词时,例如:
{ "$text": { "$search": " 'word1' " } }
它工作正常,但在AND(word1 和 word2)的情况下:
{ "$text": { "$search": "\"word1 word2\"" } }
查询执行需要很长时间。 我做错了什么?
【问题讨论】:
标签: python mongodb full-text-search pymongo