6 #include <mongocxx/collection-fwd.hpp>
7 #include <mongocxx/search_index_view-fwd.hpp>
9 #include <bsoncxx/document/view_or_value.hpp>
10 #include <bsoncxx/stdx/optional.hpp>
11 #include <mongocxx/cursor.hpp>
12 #include <mongocxx/options/aggregate.hpp>
13 #include <mongocxx/search_index_model.hpp>
15 #include <mongocxx/config/prelude.hpp>
181 std::vector<std::string>
create_many(
const std::vector<search_index_model>& models);
194 const std::vector<search_index_model>& models);
256 friend ::mongocxx::v_noabi::collection;
258 class MONGOCXX_PRIVATE impl;
262 MONGOCXX_PRIVATE std::vector<std::string> _create_many_helper(
265 MONGOCXX_PRIVATE
const impl& _get_impl()
const;
267 MONGOCXX_PRIVATE impl& _get_impl();
270 std::unique_ptr<impl> _impl;
276 #include <mongocxx/config/postlude.hpp>
A read-only, non-owning view of a BSON document.
Definition: view.hpp:36
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:38
Use a session for a sequence of operations, optionally with either causal consistency or snapshots.
Definition: client_session.hpp:47
Class representing a client connection to MongoDB.
Definition: client.hpp:61
Class representing a pointer to the result set of a query on a MongoDB server.
Definition: cursor.hpp:42
Class representing the optional arguments to a MongoDB aggregation operation.
Definition: aggregate.hpp:43
Class representing a search index on a MongoDB server.
Definition: search_index_model.hpp:20
Class representing a MongoDB search index view.
Definition: search_index_view.hpp:23
void drop_one(bsoncxx::v_noabi::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::v_noabi::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.
std::string create_one(bsoncxx::v_noabi::string::view_or_value name, bsoncxx::v_noabi::document::view_or_value definition)
This is a convenience method for creating a single search index.
cursor list(bsoncxx::v_noabi::string::view_or_value name, const options::aggregate &options=options::aggregate())
Returns a cursor over all the search indexes.
std::string create_one(bsoncxx::v_noabi::document::view_or_value definition)
This is a convenience method for creating a single search index with a default 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::v_noabi::string::view_or_value name)
Drops a single search index from the collection by the index name.
void update_one(const client_session &session, bsoncxx::v_noabi::string::view_or_value name, bsoncxx::v_noabi::document::view_or_value definition)
Updates a single search index from the collection by the search index name.
cursor list(const client_session &session, bsoncxx::v_noabi::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.
std::string create_one(const client_session &session, bsoncxx::v_noabi::string::view_or_value name, bsoncxx::v_noabi::document::view_or_value definition)
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.
void update_one(bsoncxx::v_noabi::string::view_or_value name, bsoncxx::v_noabi::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-fwd.hpp:19