Table of Contents

Class IndexKeysDefinitionBuilder<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll
public sealed class IndexKeysDefinitionBuilder<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance
IndexKeysDefinitionBuilder<TDocument>
Inherited Members

Methods

Ascending(FieldDefinition<TDocument>)

Creates an ascending index key definition.

Ascending(Expression<Func<TDocument, object>>)

Creates an ascending index key definition.

Combine(params IndexKeysDefinition<TDocument>[])

Creates a combined index keys definition.

Combine(IEnumerable<IndexKeysDefinition<TDocument>>)

Creates a combined index keys definition.

Descending(FieldDefinition<TDocument>)

Creates a descending index key definition.

Descending(Expression<Func<TDocument, object>>)

Creates a descending index key definition.

Geo2D(FieldDefinition<TDocument>)

Creates a 2d index key definition.

Geo2D(Expression<Func<TDocument, object>>)

Creates a 2d index key definition.

Geo2DSphere(FieldDefinition<TDocument>)

Creates a 2dsphere index key definition.

Geo2DSphere(Expression<Func<TDocument, object>>)

Creates a 2dsphere index key definition.

GeoHaystack(FieldDefinition<TDocument>, FieldDefinition<TDocument>)

Creates a geo haystack index key definition.

GeoHaystack(Expression<Func<TDocument, object>>, Expression<Func<TDocument, object>>)

Creates a geo haystack index key definition.

Hashed(FieldDefinition<TDocument>)

Creates a hashed index key definition.

Hashed(Expression<Func<TDocument, object>>)

Creates a hashed index key definition.

Text(FieldDefinition<TDocument>)

Creates a text index key definition.

Text(Expression<Func<TDocument, object>>)

Creates a text index key definition.

Wildcard(FieldDefinition<TDocument>)

Creates a wildcard index key definition. The method doesn't expect to specify a wildcard key explicitly.

Wildcard(Expression<Func<TDocument, object>>)

Creates a wildcard index key definition.