#include <mongocxx/v1/search_indexes.hpp>
Support for MongoDB Atlas Search indexes.
Classes | |
| class | model |
| A description of a MongoDB Atlas Search index. More... | |
Public Member Functions | |
| search_indexes (search_indexes &&other) noexcept | |
| Move constructor. | |
| search_indexes (search_indexes const &other) | |
| Copy construction. | |
| ~search_indexes () | |
| Destroy this object. | |
| std::vector< std::string > | create_many (std::vector< model > const &indexes) |
| Create multiple search indexes in the associated collection. | |
| std::vector< std::string > | create_many (v1::client_session const &session, std::vector< model > const &indexes) |
| Create multiple search indexes in the associated collection. | |
| std::string | create_one (bsoncxx::v1::document::view definition) |
| Create a single search index in the associated collection. | |
| std::string | create_one (bsoncxx::v1::stdx::string_view name, bsoncxx::v1::document::view definition) |
| Create a single search index in the associated collection. | |
| std::string | create_one (model const &index) |
| Create a single search index in the associated collection. | |
| std::string | create_one (v1::client_session const &session, bsoncxx::v1::document::view definition) |
| Create a single search index in the associated collection. | |
| std::string | create_one (v1::client_session const &session, bsoncxx::v1::stdx::string_view name, bsoncxx::v1::document::view definition) |
| Create a single search index in the associated collection. | |
| std::string | create_one (v1::client_session const &session, model const &index) |
| Create a single search index in the associated collection. | |
| void | drop_one (bsoncxx::v1::stdx::string_view name) |
| Drop the search index with the given name in the associated collection. | |
| void | drop_one (v1::client_session const &session, bsoncxx::v1::stdx::string_view name) |
| Drop the search index with the given name in the associated collection. | |
| v1::cursor | list (bsoncxx::v1::stdx::string_view name, v1::aggregate_options const &opts={}) |
| Return information for the search index with the given name in the associated collection. | |
| v1::cursor | list (v1::aggregate_options const &opts={}) |
| Return information for all search indexes in the associated collection. | |
| v1::cursor | list (v1::client_session const &session, bsoncxx::v1::stdx::string_view name, v1::aggregate_options const &opts={}) |
| Return information for the search index with the given name in the associated collection. | |
| v1::cursor | list (v1::client_session const &session, v1::aggregate_options const &opts={}) |
| Return information for all search indexes in the associated collection. | |
| search_indexes & | operator= (search_indexes &&other) noexcept |
| Move assignment. | |
| search_indexes & | operator= (search_indexes const &other) |
| Copy assignment. | |
| void | update_one (bsoncxx::v1::stdx::string_view name, bsoncxx::v1::document::view definition) |
| Update the definition of the search index with the given name in the associated collection. | |
| void | update_one (v1::client_session const &session, bsoncxx::v1::stdx::string_view name, bsoncxx::v1::document::view definition) |
| Update the definition of the search index with the given name in the associated collection. | |
| mongocxx::v1::search_indexes::~search_indexes | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::search_indexes::search_indexes | ( | search_indexes const & | other | ) |
Copy construction.
| std::vector< std::string > mongocxx::v1::search_indexes::create_many | ( | std::vector< model > const & | indexes | ) |
Create multiple search indexes in the associated collection.
| mongocxx::v1::server_error | when a server-side error is encountered and a raw server error is available. |
| mongocxx::v1::exception | for all other runtime errors. |
| std::vector< std::string > mongocxx::v1::search_indexes::create_many | ( | v1::client_session const & | session, |
| std::vector< model > const & | indexes ) |
Create multiple search indexes in the associated collection.
| mongocxx::v1::server_error | when a server-side error is encountered and a raw server error is available. |
| mongocxx::v1::exception | for all other runtime errors. |
| std::string mongocxx::v1::search_indexes::create_one | ( | bsoncxx::v1::document::view | definition | ) |
Create a single search index in the associated collection.
Equivalent to this->create_many(...) with a single search index model.
| mongocxx::v1::server_error | when a server-side error is encountered and a raw server error is available. |
| mongocxx::v1::exception | for all other runtime errors. |
| std::string mongocxx::v1::search_indexes::create_one | ( | bsoncxx::v1::stdx::string_view | name, |
| bsoncxx::v1::document::view | definition ) |
Create a single search index in the associated collection.
Equivalent to this->create_many(...) with a single search index model.
| mongocxx::v1::server_error | when a server-side error is encountered and a raw server error is available. |
| mongocxx::v1::exception | for all other runtime errors. |
| std::string mongocxx::v1::search_indexes::create_one | ( | model const & | index | ) |
Create a single search index in the associated collection.
Equivalent to this->create_many(...) with a single search index model.
| mongocxx::v1::server_error | when a server-side error is encountered and a raw server error is available. |
| mongocxx::v1::exception | for all other runtime errors. |
| std::string mongocxx::v1::search_indexes::create_one | ( | v1::client_session const & | session, |
| bsoncxx::v1::document::view | definition ) |
Create a single search index in the associated collection.
Equivalent to this->create_many(...) with a single search index model.
| mongocxx::v1::server_error | when a server-side error is encountered and a raw server error is available. |
| mongocxx::v1::exception | for all other runtime errors. |
| std::string mongocxx::v1::search_indexes::create_one | ( | v1::client_session const & | session, |
| bsoncxx::v1::stdx::string_view | name, | ||
| bsoncxx::v1::document::view | definition ) |
Create a single search index in the associated collection.
Equivalent to this->create_many(...) with a single search index model.
| mongocxx::v1::server_error | when a server-side error is encountered and a raw server error is available. |
| mongocxx::v1::exception | for all other runtime errors. |
| std::string mongocxx::v1::search_indexes::create_one | ( | v1::client_session const & | session, |
| model const & | index ) |
Create a single search index in the associated collection.
Equivalent to this->create_many(...) with a single search index model.
| mongocxx::v1::server_error | when a server-side error is encountered and a raw server error is available. |
| mongocxx::v1::exception | for all other runtime errors. |
| void mongocxx::v1::search_indexes::drop_one | ( | bsoncxx::v1::stdx::string_view | name | ) |
Drop the search index with the given name in the associated collection.
| mongocxx::v1::server_error | when a server-side error is encountered and a raw server error is available. |
| mongocxx::v1::exception | for all other runtime errors. |
| void mongocxx::v1::search_indexes::drop_one | ( | v1::client_session const & | session, |
| bsoncxx::v1::stdx::string_view | name ) |
Drop the search index with the given name in the associated collection.
| mongocxx::v1::server_error | when a server-side error is encountered and a raw server error is available. |
| mongocxx::v1::exception | for all other runtime errors. |
| v1::cursor mongocxx::v1::search_indexes::list | ( | bsoncxx::v1::stdx::string_view | name, |
| v1::aggregate_options const & | opts = {} ) |
Return information for the search index with the given name in the associated collection.
| v1::cursor mongocxx::v1::search_indexes::list | ( | v1::aggregate_options const & | opts = {} | ) |
Return information for all search indexes in the associated collection.
| v1::cursor mongocxx::v1::search_indexes::list | ( | v1::client_session const & | session, |
| bsoncxx::v1::stdx::string_view | name, | ||
| v1::aggregate_options const & | opts = {} ) |
Return information for the search index with the given name in the associated collection.
| v1::cursor mongocxx::v1::search_indexes::list | ( | v1::client_session const & | session, |
| v1::aggregate_options const & | opts = {} ) |
Return information for all search indexes in the associated collection.
|
noexcept |
Move assignment.
| search_indexes & mongocxx::v1::search_indexes::operator= | ( | search_indexes const & | other | ) |
Copy assignment.
| void mongocxx::v1::search_indexes::update_one | ( | bsoncxx::v1::stdx::string_view | name, |
| bsoncxx::v1::document::view | definition ) |
Update the definition of the search index with the given name in the associated collection.
| mongocxx::v1::server_error | when a server-side error is encountered and a raw server error is available. |
| mongocxx::v1::exception | for all other runtime errors. |
| void mongocxx::v1::search_indexes::update_one | ( | v1::client_session const & | session, |
| bsoncxx::v1::stdx::string_view | name, | ||
| bsoncxx::v1::document::view | definition ) |
Update the definition of the search index with the given name in the associated collection.
| mongocxx::v1::server_error | when a server-side error is encountered and a raw server error is available. |
| mongocxx::v1::exception | for all other runtime errors. |