[DOCS-14323] Investigate changes in SERVER-54712: createIndexes permits weights for non-text indexes Created: 30/Mar/21  Updated: 13/Nov/23  Resolved: 29/Jul/21

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.9.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Ian Fogelman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-54712 createIndexes permits weights for non... Closed
Participants:
Days since reply: 2 years, 28 weeks ago
Epic Link: DOCSP-9747
Story Points: 2

 Description   

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.)



 Comments   
Comment by Githook User [ 28/Jul/21 ]

Author:

{'name': 'ian fogelman', 'email': 'ian.fogelman@mongodb.com', 'username': 'ianf-mongodb'}

Message: DOCS-14323-weights-for-non-text-indexes
Branch: master
https://github.com/mongodb/docs/commit/2440b36de23c60a5c33be2f8ea24823123489d72

Generated at Thu Feb 08 08:10:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.