Table of Contents

Method Text

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Text(FieldDefinition<TDocument>)

Creates a text index key definition.

public IndexKeysDefinition<TDocument> Text(FieldDefinition<TDocument> field)

Parameters

field FieldDefinition<TDocument>

The field.

Returns

IndexKeysDefinition<TDocument>

A text index key definition.

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

Creates a text index key definition.

public IndexKeysDefinition<TDocument> Text(Expression<Func<TDocument, object>> field)

Parameters

field Expression<Func<TDocument, object>>

The field.

Returns

IndexKeysDefinition<TDocument>

A text index key definition.