[SERVER-53076] Support text index on entire subdocument Created: 25/Nov/20  Updated: 27/Dec/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: David Percy Assignee: Backlog - Query Integration
Resolution: Unresolved Votes: 0
Labels: qi-text-search
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Query Integration
Participants:
Case:

 Description   

Text indexes can apply to specific fields, or the entire document:

db.c.createIndex({ a: 'text' })

db.c.createIndex({ '$**': 'text' })

The second case is called a wildcard text index, not to be confused with wildcard indexes.

Wildcard indexes can apply to the whole document, or a subdocument:

db.c.createIndex({ '$**': 1 })

db.c.createIndex({ 'a.$**': 1 })

To complete the analogy, we should support creating a text index on an entire subdocument:

db.c.createIndex({ 'a.$**': 'text' })


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