Table of Contents

Method Text

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Text(string, TextSearchOptions)

Creates a text filter.

public FilterDefinition<TDocument> Text(string search, TextSearchOptions options = null)

Parameters

search string

The search.

options TextSearchOptions

The text search options.

Returns

FilterDefinition<TDocument>

A text filter.

Text(string, string)

Creates a text filter.

public FilterDefinition<TDocument> Text(string search, string language)

Parameters

search string

The search.

language string

The language.

Returns

FilterDefinition<TDocument>

A text filter.