-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.1.9
-
Component/s: Querying, Text Search
-
None
-
Fully Compatible
-
ALL
-
0
Setup
db.ara.drop(); // http://en.wikipedia.org/wiki/Arabic_verbs db.ara.insert({ _id: "past_writes", t1: "كَتَبْتُ" }); db.ara.insert({ _id: "present_writes", t1: "أَكْتُبُ" }); db.ara.insert({ _id: "future_writes", t1: "سَأَكْتُبُ" }); db.ara.ensureIndex({ t1: "text" }, { default_language: "arabic" });
This query works
db.ara.find( { "$text" : { "$search" : "كتب" } } )
But this query fails when it should work
db.ara.find( { "$text" : { "$search" : "كتب", $language : "arabic" } } ) Error: error: { "waitedMS" : NumberLong(0), "ok" : 0, "errmsg" : "$language specifies unsupported language", "code" : 2 }
- duplicates
-
SERVER-19510 Text query parsing should be moved to TextMatchExpression::init()
- Closed