-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.4.0-rc2
-
Component/s: Querying
-
Query Integration
The $meta "indexKey" expression appears to produce nothing when used with text indexes:
db.c.createIndex({x: "text"}); db.c.insert({x: "az b c"}); db.c.find({x: {$text: {$search: "az"}}}, {key: {$meta: "indexKey"}}); // resulting document does not have the index key