-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
Fully Compatible
-
ALL
-
Repl 2021-03-08
-
18
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.)
- is related to
-
SERVER-54712 createIndexes permits weights for non-text indexes
- Closed