|
| | index ()=default |
| | Default initialization.
|
| | index (v1::indexes::options const &opts) |
| | Construct with the mongocxx::v1 equivalent.
|
| bsoncxx::v_noabi::stdx::optional< bool > const & | background () const |
| | The current background setting.
|
| index & | background (bool background) |
| | Whether or not to build the index in the background so that building the index does not block other database activities. The default is to build indexes in the foreground.
|
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view > const & | collation () const |
| | Retrieves the current collation for this index.
|
| index & | collation (bsoncxx::v_noabi::document::view collation) |
| | Sets the collation for this index.
|
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & | default_language () const |
| | The current default_language setting.
|
| index & | default_language (bsoncxx::v_noabi::string::view_or_value default_language) |
| | For text indexes, the language that determines the list of stop words and the rules for the stemmer and tokenizer.
|
| bsoncxx::v_noabi::stdx::optional< std::chrono::seconds > const & | expire_after () const |
| | The current expire_after setting.
|
| index & | expire_after (std::chrono::seconds seconds) |
| | Set a value, in seconds, as a TTL to control how long MongoDB retains documents in this collection.
|
| bsoncxx::v_noabi::stdx::optional< double > const & | haystack_bucket_size () const |
| | The current haystack_bucket_size setting.
|
| index & | haystack_bucket_size (double haystack_bucket_size) |
| | For geoHaystack indexes, specify the number of units within which to group the location values; i.e. group in the same bucket those location values that are within the specified number of units to each other.
|
| bsoncxx::v_noabi::stdx::optional< bool > const & | hidden () const |
| | The current hidden setting.
|
| index & | hidden (bool hidden) |
| | Whether or not the index is hidden from the query planner. A hidden index is not evaluated as part of query plan selection.
|
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & | language_override () const |
| | The current name of the field that contains the override language for text indexes.
|
| index & | language_override (bsoncxx::v_noabi::string::view_or_value language_override) |
| | For text indexes, the name of the field, in the collection’s documents, that contains the override language for the document.
|
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & | name () const |
| | The current name setting.
|
| index & | name (bsoncxx::v_noabi::string::view_or_value name) |
| | The name of the index.
|
| | operator bsoncxx::v_noabi::document::view_or_value () |
| | Conversion operator that provides a view of the options in document form.
|
| | operator v1::indexes::options () const |
| | Convert to the mongocxx::v1 equivalent.
|
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view > const & | partial_filter_expression () const |
| | The current partial_filter_expression setting.
|
| index & | partial_filter_expression (bsoncxx::v_noabi::document::view partial_filter_expression) |
| | Sets the document for the partial filter expression for partial indexes.
|
| bsoncxx::v_noabi::stdx::optional< bool > const & | sparse () const |
| | The current sparse setting.
|
| index & | sparse (bool sparse) |
| | Whether or not to create a sparse index. Sparse indexes only reference documents with the indexed fields.
|
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view > const & | storage_engine () const |
| | The current storage engine options.
|
| index & | storage_engine (bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view > storage_engine) |
| | Specifies the storage engine options for the index.
|
| index & | storage_options (std::unique_ptr< base_storage_options > storage_options) |
| | Specifies the storage engine options for the index.
|
| index & | storage_options (std::unique_ptr< wiredtiger_storage_options > storage_options) |
| | Specifies the WiredTiger-specific storage engine options for the index.
|
| bsoncxx::v_noabi::stdx::optional< std::uint8_t > const & | twod_bits_precision () const |
| | The current precision of the stored geohash value of the location data.
|
| index & | twod_bits_precision (std::uint8_t twod_bits_precision) |
| | For 2d indexes, the precision of the stored geohash value of the location data.
|
| bsoncxx::v_noabi::stdx::optional< double > const & | twod_location_max () const |
| | The current upper inclusive boundary for the longitude and latitude values.
|
| index & | twod_location_max (double twod_location_max) |
| | For 2d indexes, the upper inclusive boundary for the longitude and latitude values.
|
| bsoncxx::v_noabi::stdx::optional< double > const & | twod_location_min () const |
| | The current lower inclusive boundary for the longitude and latitude values.
|
| index & | twod_location_min (double twod_location_min) |
| | For 2d indexes, the lower inclusive boundary for the longitude and latitude values.
|
| bsoncxx::v_noabi::stdx::optional< std::uint8_t > const & | twod_sphere_version () const |
| | The current twod_sphere_version setting.
|
| index & | twod_sphere_version (std::uint8_t twod_sphere_version) |
| | For 2dsphere indexes, the 2dsphere index version number. Version can be either 1 or 2.
|
| bsoncxx::v_noabi::stdx::optional< bool > const & | unique () const |
| | The current unique setting.
|
| index & | unique (bool unique) |
| | Whether or not to create a unique index so that the collection will not accept insertion of documents where the index key or keys match an existing value in the index.
|
| bsoncxx::v_noabi::stdx::optional< std::int32_t > const & | version () const |
| | The current index version.
|
| index & | version (std::int32_t v) |
| | Sets the index version.
|
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view > const & | weights () const |
| | The current weights setting.
|
| index & | weights (bsoncxx::v_noabi::document::view weights) |
| | For text indexes, sets the weight document. The weight document contains field and weight pairs.
|