Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
-
Repl 2021-03-08
-
18
Description
An index spec's "weights" field is normally an object, but it can also be the string "$**". InĀ SERVER-52545 we updated listIndexes to return an error if any index spec in the catalog does not match its expected format, and we incorrectly required "weights" to always be an object. Update the IDL definition for index specs to permit an object or a string.
(Note, "weights" has some other surprising behavior which I'm not fixing here. Deferred to SERVER-54712.)
Attachments
Issue Links
- is related to
-
SERVER-54712 createIndexes permits weights for non-text indexes
-
- Closed
-