#include <mongocxx/v1/search_indexes.hpp>
A description of a MongoDB Atlas Search index.
Supported fields include:
Public Member Functions | |
| model (bsoncxx::v1::document::value definition) | |
| Initialize this search index model with the given "definition". | |
| model (model &&other) noexcept | |
| Move constructor. | |
| model (model const &other) | |
| Copy construction. | |
| model (std::string name, bsoncxx::v1::document::value definition) | |
| Initialize this search index model with the given "name" and "definition". | |
| ~model () | |
| Destroy this object. | |
| bsoncxx::v1::document::view | definition () const |
| Return the current "definition" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > | name () const |
| Return the current "name" field. | |
| model & | operator= (model &&other) noexcept |
| Move assignment. | |
| model & | operator= (model const &other) |
| Copy assignment. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > | type () const |
| Return the current "type" field. | |
| model & | type (std::string type) |
| Set the "type" field. | |
| mongocxx::v1::search_indexes::model::~model | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::search_indexes::model::model | ( | model const & | other | ) |
Copy construction.
| mongocxx::v1::search_indexes::model::model | ( | std::string | name, |
| bsoncxx::v1::document::value | definition ) |
Initialize this search index model with the given "name" and "definition".
| mongocxx::v1::search_indexes::model::model | ( | bsoncxx::v1::document::value | definition | ) |
Initialize this search index model with the given "definition".
| bsoncxx::v1::document::view mongocxx::v1::search_indexes::model::definition | ( | ) | const |
Return the current "definition" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > mongocxx::v1::search_indexes::model::name | ( | ) | const |
Return the current "name" field.
Move assignment.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > mongocxx::v1::search_indexes::model::type | ( | ) | const |
Return the current "type" field.
| model & mongocxx::v1::search_indexes::model::type | ( | std::string | type | ) |
Set the "type" field.