[CXX-157] Add DBClientWithCommands::ensureIndex() overload that takes an options object Created: 16/Nov/13 Updated: 17/Jun/14 Resolved: 17/Jun/14 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | API, Implementation |
| Affects Version/s: | legacy-0.0-26compat-2.6.0-rc0 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | J Rassi | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | cxxcopy, legacy-cxx | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
DBClientWithCommands::ensureIndex() provides a fixed set of options that can be set on the index being created, and hasn't been updated with new index options (e.g. "'weights", "default_language" for text indexes). To future-proof the interface, the C++ driver should provide a new overload for this function that takes "const BSONObj& options" instead of the options currently provided. |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 17/Jun/14 ] |
|
The ensureIndex mechanism is deprecated, and we will not be improving it. Instead, all improvements related to index creation will take place in |