Mongodb exact phrase search

半腔热情 提交于 2019-12-31 04:48:24

问题


As I understood from Mongodb documentation of text search.
if i want to search about Java or (coffee shop)
I need to do it like
{$text:{$search:"Java \"coffee shop\""}}
Exact Phrase search in mongodb documentation
so it should return all the documents contain Java or (coffee shop).
but it acts exactly as Java and (coffee shop).
so I think that i didn't get it right from the documentation.
so please.
I need clear explanation for why i got that result?
and
how to get the required output Java or (coffee shop)?


回答1:


This is a known issue, and is being tracker in SERVER-30163. Not Solved yet so please go to SERVER-30163 to up-vote it.



来源:https://stackoverflow.com/questions/48674778/mongodb-exact-phrase-search

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!