Mongo $text 搜索未找到或您的 [英] Mongo $text search not finding the or your

查看:60
本文介绍了Mongo $text 搜索未找到或您的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 mongodb $text 索引,我注意到它没有找到像the"或your"这样的简单词.有没有办法启用它?似乎找不到任何东西.谢谢

解决方案

您可以将 language 设置为none"以完全禁用停用词、词干等:https://docs.mongodb.com/manual/reference/operator/query/text/

自定义停用词功能在待办事项中:https://jira.mongodb.org/browse/SERVER-10062.>

I'm using mongodb $text index and I noticed that it's not finding simple words like 'the' or 'your'. Is there a way to enable this? Can't seem to find anything. Thank you

解决方案

You can set language to "none" to disable stop-words, stemming etc completely: https://docs.mongodb.com/manual/reference/operator/query/text/

Custom stop-words feature is in the backlog: https://jira.mongodb.org/browse/SERVER-10062.

这篇关于Mongo $text 搜索未找到或您的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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