Table of Contents

Method Or

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

Or(IEnumerable<SearchSpanDefinition<TDocument>>)

Creates a span clause that matches any of its subclauses.

public SearchSpanDefinition<TDocument> Or(IEnumerable<SearchSpanDefinition<TDocument>> clauses)

Parameters

clauses IEnumerable<SearchSpanDefinition<TDocument>>

The clauses.

Returns

SearchSpanDefinition<TDocument>

An or span clause.

Or(params SearchSpanDefinition<TDocument>[])

Creates a span clause that matches any of its subclauses.

public SearchSpanDefinition<TDocument> Or(params SearchSpanDefinition<TDocument>[] clauses)

Parameters

clauses SearchSpanDefinition<TDocument>[]

The clauses.

Returns

SearchSpanDefinition<TDocument>

An or span clause.