Table of Contents

Class CreateIndexRequest

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

Represents a create index request.

public class CreateIndexRequest
Inheritance
CreateIndexRequest
Inherited Members

Constructors

CreateIndexRequest(BsonDocument)

Initializes a new instance of the CreateIndexRequest class.

Properties

AdditionalOptions

Gets or sets the additional options.

Background

Gets or sets a value indicating whether the index should be created in the background.

Bits

Gets or sets the bits of precision of the geohash values for 2d geo indexes.

BucketSize

Gets or sets the size of the bucket for geo haystack indexes.

Collation

Gets or sets the collation.

DefaultLanguage

Gets or sets the default language for text indexes.

ExpireAfter

Gets or sets when documents in a TTL collection expire.

Hidden

Gets or sets a value indicating whether the index is hidden.

Keys

Gets the keys.

LanguageOverride

Gets or sets the language override for text indexes.

Max

Gets or sets the maximum coordinate value for 2d indexes.

Min

Gets or sets the minimum coordinate value for 2d indexes.

Name

Gets or sets the index name.

PartialFilterExpression

Gets or sets the partial filter expression.

Sparse

Gets or sets a value indicating whether the index is a sparse index.

SphereIndexVersion

Gets or sets the 2dsphere index version.

StorageEngine

Gets or sets the storage engine options.

TextIndexVersion

Gets or sets the text index version.

Unique

Gets or sets a value indicating whether the index enforces the uniqueness of the key values.

Version

Gets or sets the index version.

Weights

Gets or sets the weights for text indexes.

WildcardProjection

Gets or sets the wildcard projection.

Methods

GetIndexName()

Gets the name of the index.