-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: 3.1.2
-
Component/s: Text Search
-
Fully Compatible
-
ALL
-
-
Platform 4 06/05/15, Platform 5 06/26/16
-
None
-
None
-
None
-
None
-
None
-
None
-
None
When using RLP, there seems to be different parsing for index keys and queries, which can lead to missing results:
> db.fts.ensureIndex({a: 'text'});
// The index is created
> db.fts.insert({a: 'hello.world', language: 'arabic'});
// Resultant index key from the RLP tokenizer: "{ : \"hello.world\", : 1.1 }"
> db.fts.find({$text: {$search: 'hello.world', $language: 'arabic'}}).itcount();
0
> db.fts.find({$text: {$search: 'hello.world', $language: 'arabic'}}).explain(true);
// Parsed terms:
"parsedTextQuery" : {
"terms" : [
"hello",
"world"
],
"negatedTerms" : [ ],
"phrases" : [ ],
"negatedPhrases" : [ ]
}