MongoDB C++ Driver mongocxx-3.11.0
Loading...
Searching...
No Matches
mongocxx::v_noabi::search_index_model Class Reference

#include <mongocxx/v_noabi/mongocxx/search_index_model.hpp>

Description

Class representing a search index on a MongoDB server.

Public Member Functions

 search_index_model (bsoncxx::v_noabi::document::view_or_value definition)
 Initializes a new search_index_model over a mongocxx::v_noabi::collection.
 
 search_index_model (const search_index_model &)
 Copy constructs a search_index_model.
 
 search_index_model (search_index_model &&) noexcept
 Move constructs a search_index_model.
 
 ~search_index_model ()
 Destroys a search_index_model.
 
bsoncxx::v_noabi::document::view definition () const
 Retrieves definition of a search_index_model.
 
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_valuename () const
 Retrieves name of a search_index_model.
 
search_index_modeloperator= (const search_index_model &)
 Copy assigns a search_index_model.
 
search_index_modeloperator= (search_index_model &&) noexcept
 Move assigns a search_index_model.
 
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_valuetype () const
 Retrieves type of a search_index_model.
 
search_index_modeltype (bsoncxx::v_noabi::string::view_or_value type)
 Sets type of a search_index_model.
 

Constructor & Destructor Documentation

◆ search_index_model() [1/3]

mongocxx::v_noabi::search_index_model::search_index_model ( bsoncxx::v_noabi::document::view_or_value definition)

◆ search_index_model() [2/3]

mongocxx::v_noabi::search_index_model::search_index_model ( search_index_model && )
noexcept

Move constructs a search_index_model.

◆ search_index_model() [3/3]

mongocxx::v_noabi::search_index_model::search_index_model ( const search_index_model & )

Copy constructs a search_index_model.

◆ ~search_index_model()

mongocxx::v_noabi::search_index_model::~search_index_model ( )

Destroys a search_index_model.

Member Function Documentation

◆ definition()

bsoncxx::v_noabi::document::view mongocxx::v_noabi::search_index_model::definition ( ) const

Retrieves definition of a search_index_model.

◆ name()

bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > mongocxx::v_noabi::search_index_model::name ( ) const

Retrieves name of a search_index_model.

◆ operator=() [1/2]

search_index_model & mongocxx::v_noabi::search_index_model::operator= ( const search_index_model & )

Copy assigns a search_index_model.

◆ operator=() [2/2]

search_index_model & mongocxx::v_noabi::search_index_model::operator= ( search_index_model && )
noexcept

Move assigns a search_index_model.

◆ type() [1/2]

bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > mongocxx::v_noabi::search_index_model::type ( ) const

Retrieves type of a search_index_model.

◆ type() [2/2]

search_index_model & mongocxx::v_noabi::search_index_model::type ( bsoncxx::v_noabi::string::view_or_value type)

Sets type of a search_index_model.

Parameters
typeThe type for this index. Can be either "search" or "vectorSearch".
Returns
A reference to this object to facilitate method chaining.

The documentation for this class was generated from the following file: