-
Notifications
You must be signed in to change notification settings - Fork 546
CXX-2700 Add search index management e2e testing against Atlas #1002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
5ae0813
d6f31fd
d089d02
0a51294
f87a5aa
567f9ff
40b78f9
d7159e8
5c2e736
e715a11
e2c6866
143584a
13cf51a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,27 @@ class MONGOCXX_API search_index_view { | |
|
||
/// | ||
/// @{ | ||
/// | ||
/// This is a convenience method for creating a single search index. | ||
kevinAlbs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
/// | ||
/// @param definition | ||
/// The document describing the search index to be created. | ||
/// | ||
/// @return The name of the created search index. | ||
/// | ||
std::string create_one(bsoncxx::document::view_or_value definition); | ||
|
||
/// | ||
/// This is a convenience method for creating a single search index. | ||
kevinAlbs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
/// | ||
/// @param definition | ||
/// The document describing the search index to be created. | ||
/// | ||
/// @return The name of the created search index. | ||
/// | ||
std::string create_one(const client_session& session, | ||
bsoncxx::document::view_or_value definition); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These two overloads were added due a change made in DRIVERS-2630 that allows for |
||
/// | ||
/// This is a convenience method for creating a single search index. | ||
/// | ||
|
@@ -151,8 +172,7 @@ class MONGOCXX_API search_index_view { | |
/// | ||
/// @return The names of the created indexes. | ||
/// | ||
std::vector<bsoncxx::string::view_or_value> create_many( | ||
const std::vector<search_index_model>& models); | ||
std::vector<std::string> create_many(const std::vector<search_index_model>& models); | ||
|
||
/// | ||
/// Creates multiple search indexes in the collection. | ||
|
@@ -164,8 +184,8 @@ class MONGOCXX_API search_index_view { | |
/// | ||
/// @return The names of the created indexes. | ||
/// | ||
std::vector<bsoncxx::string::view_or_value> create_many( | ||
const client_session& session, const std::vector<search_index_model>& models); | ||
std::vector<std::string> create_many(const client_session& session, | ||
const std::vector<search_index_model>& models); | ||
|
||
/// | ||
/// @} | ||
|
@@ -232,7 +252,7 @@ class MONGOCXX_API search_index_view { | |
|
||
MONGOCXX_PRIVATE search_index_view(void* coll, void* client); | ||
|
||
MONGOCXX_PRIVATE std::vector<bsoncxx::string::view_or_value> _create_many_helper( | ||
MONGOCXX_PRIVATE std::vector<std::string> _create_many_helper( | ||
bsoncxx::array::view created_indexes); | ||
|
||
MONGOCXX_PRIVATE const impl& _get_impl() const; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran into some issues with reading the values of the
std::vector<bsoncxx::string::view_or_value>
returned from this function due to ownership semantics. After talking to @eramongodb, we came to the conclusion that it would be easier and more clear to just make this astd::vector<std::string>
. This minor change seen across this PR.