Details
Description
All index types provide an implementation of getKeys() which, given a document and an index key pattern, return a set of BSONObjs representing the keys. For those index types that can have a non-simple binary compare collation, we need to change getKeys() to return BSONObjs containing collator-generated comparison keys for string elements.
The supported index types are:
- btree version 1
- 2d
- 2dsphere
- hashed