Table of Contents

Method Should

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

Should(IEnumerable<SearchDefinition<TDocument>>)

Adds clauses which cause documents in the result set to be scored higher if they match.

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

Parameters

clauses IEnumerable<SearchDefinition<TDocument>>

The clauses.

Returns

CompoundSearchDefinitionBuilder<TDocument>

The compound search definition builder.

Should(params SearchDefinition<TDocument>[])

Adds clauses which cause documents in the result set to be scored higher if they match.

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

Parameters

clauses SearchDefinition<TDocument>[]

The clauses.

Returns

CompoundSearchDefinitionBuilder<TDocument>

The compound search definition builder.