-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Description
Downstream Change Summary
We might have to update the docs to mention "Starting from 5.0 the 'weights' parameter is only allowed for $text indexes".
Description of Linked Ticket
The following are all permitted in 4.4.4, although weights are only meaningful for text indexes:
coll.createIndex({a: 1, c: 1}, {weights: {d: 1}}) coll.createIndex({a: 1, c: 1}, {weights: "$**"}) coll.createIndex({a: 1, c: 1}, {weights: {}}) coll.createIndex({a: 1, c: 1}, {weights: "$foo"})
Consider banning them before we release API Version 1.
Scope of changes
This should also get a mention on the compatibility notes.
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- documents
-
SERVER-54712 createIndexes permits weights for non-text indexes
- Closed