Table of Contents

Method Text

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

Text(params Expression<Func<TDocument, string>>[])

Sets one or more key names to include in the text index.

public IndexKeysBuilder<TDocument> Text(params Expression<Func<TDocument, string>>[] memberExpressions)

Parameters

memberExpressions Expression<Func<TDocument, string>>[]

The member expressions.

Returns

IndexKeysBuilder<TDocument>

The builder (so method calls can be chained).

Text(params Expression<Func<TDocument, IEnumerable<string>>>[])

Sets one or more key names to include in the text index.

public IndexKeysBuilder<TDocument> Text(params Expression<Func<TDocument, IEnumerable<string>>>[] memberExpressions)

Parameters

memberExpressions Expression<Func<TDocument, IEnumerable<string>>>[]

The member expressions.

Returns

IndexKeysBuilder<TDocument>

The builder (so method calls can be chained).