Table of Contents

Method Near

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

Near(IEnumerable<SearchSpanDefinition<TDocument>>, int, bool)

Creates a span clause that matches multiple string found near each other.

public SearchSpanDefinition<TDocument> Near(IEnumerable<SearchSpanDefinition<TDocument>> clauses, int slop, bool inOrder = false)

Parameters

clauses IEnumerable<SearchSpanDefinition<TDocument>>

The clauses.

slop int

The allowable distance between words in the query phrase.

inOrder bool

Whether to require that the clauses appear in the specified order.

Returns

SearchSpanDefinition<TDocument>

A near span clause.