Table of Contents

Method Multi

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

Multi(IEnumerable<FieldDefinition<TDocument>>)

Creates a search path for multiple fields.

public SearchPathDefinition<TDocument> Multi(IEnumerable<FieldDefinition<TDocument>> fields)

Parameters

fields IEnumerable<FieldDefinition<TDocument>>

The collection of field definitions.

Returns

SearchPathDefinition<TDocument>

A multi-field search path.

Multi(params FieldDefinition<TDocument>[])

Creates a search path for multiple fields.

public SearchPathDefinition<TDocument> Multi(params FieldDefinition<TDocument>[] fields)

Parameters

fields FieldDefinition<TDocument>[]

The array of field definitions.

Returns

SearchPathDefinition<TDocument>

A multi-field search path.

Multi<TField>(params Expression<Func<TDocument, TField>>[])

Creates a search path for multiple fields.

public SearchPathDefinition<TDocument> Multi<TField>(params Expression<Func<TDocument, TField>>[] fields)

Parameters

fields Expression<Func<TDocument, TField>>[]

The array of field definitions.

Returns

SearchPathDefinition<TDocument>

A multi-field search path.

Type Parameters

TField

The type of the fields.