Text search query for text “other” always returns no results?

后端 未结 3 810
生来不讨喜
生来不讨喜 2021-01-23 18:45

My data looks like this:

[{\"id\" : 1, \"question\" : \"Other specified dermatomycoses\", ... },
 {\"id\" : 6, \"question\" : \"Other specified disorders of join         


        
3条回答
  •  执念已碎
    2021-01-23 18:55

    Blakes said it all, as an added tip; you can use $language operator with value none to ignore stop words and stemming. Here is an example how to use it :

    db.questions.find({ $text: { $search: "other", $language: "none" } })
    

提交回复
热议问题