[SERVER-47722] $meta "indexKey" produces no value for text indexes Created: 23/Apr/20  Updated: 27/Dec/23

Status: Backlog
Project: Core Server
Component/s: Querying
Affects Version/s: 4.4.0-rc2
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Ian Boros Assignee: Backlog - Query Integration
Resolution: Unresolved Votes: 0
Labels: qexec-team, qi-text-search
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Integration
Participants:

 Description   

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

 

 


Generated at Thu Feb 08 05:15:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.