Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我面临的主要问题是我创建了具有两个权重字段的 $text 索引,并且无法使用该索引进行文本搜索。即使在创建文本索引之后,查询的结果也需要很长时间。
正如您在解释计划中看到的那样,“查询使用了以下索引”不适用于此查询(如果正在使用索引,则应该有绿色的勾号,对吧?)。所以我的查询是检查每个文档,而不是使用创建的文本索引。
请帮助解决这个问题。