[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:
Related
is related to CXX-189 Add Create Index Helper Closed

 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 CXX-189 where we are implementing a completed createIndex feature.

Generated at Wed Feb 07 21:58:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.