6 #include <bsoncxx/document/view_or_value.hpp>
7 #include <bsoncxx/stdx/optional.hpp>
8 #include <mongocxx/cursor.hpp>
9 #include <mongocxx/options/aggregate.hpp>
10 #include <mongocxx/search_index_model.hpp>
12 #include <mongocxx/config/prelude.hpp>
15 inline namespace v_noabi {
80 bsoncxx::string::view_or_value name,
97 std::string
create_one(bsoncxx::document::view_or_value definition);
110 bsoncxx::document::view_or_value definition);
123 bsoncxx::document::view_or_value definition);
138 bsoncxx::string::view_or_value name,
139 bsoncxx::document::view_or_value definition);
177 std::vector<std::string>
create_many(
const std::vector<search_index_model>& models);
190 const std::vector<search_index_model>& models);
204 void drop_one(bsoncxx::string::view_or_value name);
231 bsoncxx::document::view_or_value definition);
244 bsoncxx::string::view_or_value name,
245 bsoncxx::document::view_or_value definition);
253 class MONGOCXX_PRIVATE impl;
257 MONGOCXX_PRIVATE std::vector<std::string> _create_many_helper(
258 bsoncxx::array::view created_indexes);
260 MONGOCXX_PRIVATE
const impl& _get_impl()
const;
262 MONGOCXX_PRIVATE impl& _get_impl();
265 std::unique_ptr<impl> _impl;
271 #include <mongocxx/config/postlude.hpp>
Use a session for a sequence of operations, optionally with either causal consistency or snapshots.
Definition: client_session.hpp:40
Class representing a client connection to MongoDB.
Definition: client.hpp:54
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:85
Class representing a pointer to the result set of a query on a MongoDB server.
Definition: cursor.hpp:36
Class representing the optional arguments to a MongoDB aggregation operation.
Definition: aggregate.hpp:39
Class representing a search index on a MongoDB server.
Definition: search_index_model.hpp:17
Class representing a MongoDB search index view.
Definition: search_index_view.hpp:19
std::string create_one(bsoncxx::document::view_or_value definition)
This is a convenience method for creating a single search index with a default name.
cursor list(const options::aggregate &options=options::aggregate())
Returns a cursor over all the search indexes.
std::vector< std::string > create_many(const client_session &session, const std::vector< search_index_model > &models)
Creates multiple search indexes in the collection.
void update_one(bsoncxx::string::view_or_value name, bsoncxx::document::view_or_value definition)
Updates a single search index from the collection by the search index name.
std::string create_one(const client_session &session, const search_index_model &model)
This is a convenience method for creating a single search index.
void drop_one(const client_session &session, bsoncxx::string::view_or_value name)
Drops a single search index from the collection by the index name.
cursor list(bsoncxx::string::view_or_value name, const options::aggregate &options=options::aggregate())
Returns a cursor over all the search indexes.
cursor list(const client_session &session, bsoncxx::string::view_or_value name, const options::aggregate &options=options::aggregate())
Returns a cursor over all the search indexes.
std::string create_one(const search_index_model &model)
This is a convenience method for creating a single search index.
cursor list(const client_session &session, const options::aggregate &options=options::aggregate())
Returns a cursor over all the search indexes.
std::vector< std::string > create_many(const std::vector< search_index_model > &models)
Creates multiple search indexes in the collection.
std::string create_one(const client_session &session, bsoncxx::document::view_or_value definition)
This is a convenience method for creating a single search index with a default name.
void drop_one(bsoncxx::string::view_or_value name)
Drops a single search index from the collection by the index name.
std::string create_one(const client_session &session, bsoncxx::string::view_or_value name, bsoncxx::document::view_or_value definition)
This is a convenience method for creating a single search index.
std::string create_one(bsoncxx::string::view_or_value name, bsoncxx::document::view_or_value definition)
This is a convenience method for creating a single search index.
void update_one(const client_session &session, bsoncxx::string::view_or_value name, bsoncxx::document::view_or_value definition)
Updates a single search index from the collection by the search index name.
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24