Details
-
Bug
-
Resolution: Done
-
Major - P3
-
3.1.2
-
Fully Compatible
-
ALL
-
-
Platform 4 06/05/15, Platform 5 06/26/16
Description
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" : [ ]
|
}
|