Table of Contents

Method Must

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

Must(IEnumerable<SearchDefinition<TDocument>>)

Adds clauses which must match to produce results.

public CompoundSearchDefinitionBuilder<TDocument> Must(IEnumerable<SearchDefinition<TDocument>> clauses)

Parameters

clauses IEnumerable<SearchDefinition<TDocument>>

The clauses.

Returns

CompoundSearchDefinitionBuilder<TDocument>

The compound search definition builder.

Must(params SearchDefinition<TDocument>[])

Adds clauses which must match to produce results.

public CompoundSearchDefinitionBuilder<TDocument> Must(params SearchDefinition<TDocument>[] clauses)

Parameters

clauses SearchDefinition<TDocument>[]

The clauses.

Returns

CompoundSearchDefinitionBuilder<TDocument>

The compound search definition builder.