Click or drag to resize

IndexOptionsTDocument Class

A builder for the options used when creating an index.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.BuildersIndexOptionsTDocument

Namespace:  MongoDB.Driver.Builders
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public static class IndexOptions<TDocument>

Type Parameters

TDocument
The type of the document.

The IndexOptionsTDocument type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberNull
Gets a null value with a type of IMongoIndexOptions.
Top
Methods
  NameDescription
Public methodStatic memberSetBackground
Sets whether to build the index in the background.
Public methodStatic memberSetBits
Sets the location precision bits.
Public methodStatic memberSetBucketSize
Sets the bucket size for geospatial haystack indexes.
Public methodStatic memberSetDropDups
Sets whether duplicates should be dropped.
Public methodStatic memberSetGeoSpatialRange
Sets the geospatial range.
Public methodStatic memberSetName
Sets the name of the index.
Public methodStatic memberSetPartialFilterExpression
Sets the partial filter expression.
Public methodStatic memberSetSparse
Sets whether the index is a sparse index.
Public methodStatic memberSetStorageEngineOptions
Sets the storage engine options.
Public methodStatic memberSetTextDefaultLanguage
Sets the default language for the text index.
Public methodStatic memberSetTextLanguageOverride
Specifies a member expression for the field name containing the language for the text index.
Public methodStatic memberSetTimeToLive
Sets the time to live value.
Public methodStatic memberSetUnique
Sets whether the index enforces unique values.
Public methodStatic memberSetWeightTMember
Sets the weight of a field for the text index.
Public methodStatic memberSetWildcardProjectionTMember
Sets the wildcardProjection for the index.
Top
See Also