Table of Contents

Method Analyzer

Namespace
MongoDB.Driver.Search
Assembly
MongoDB.Driver.dll

Analyzer(FieldDefinition<TDocument>, string)

Creates a search path that searches using the specified analyzer.

public SearchPathDefinition<TDocument> Analyzer(FieldDefinition<TDocument> field, string analyzerName)

Parameters

field FieldDefinition<TDocument>

The field definition

analyzerName string

The name of the analyzer.

Returns

SearchPathDefinition<TDocument>

An analyzer search path.

Analyzer<TField>(Expression<Func<TDocument, TField>>, string)

Creates a search path that searches using the specified analyzer.

public SearchPathDefinition<TDocument> Analyzer<TField>(Expression<Func<TDocument, TField>> field, string analyzerName)

Parameters

field Expression<Func<TDocument, TField>>

The field definition

analyzerName string

The name of the analyzer.

Returns

SearchPathDefinition<TDocument>

An analyzer search path.

Type Parameters

TField

The type of the field.