Click or drag to resize

SearchSpanDefinitionBuilderTDocumentNear Method

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

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public SearchSpanDefinition<TDocument> Near(
	IEnumerable<SearchSpanDefinition<TDocument>> clauses,
	int slop,
	bool inOrder = false
)

Parameters

clauses
Type: System.Collections.GenericIEnumerableSearchSpanDefinitionTDocument
The clauses.
slop
Type: SystemInt32
The allowable distance between words in the query phrase.
inOrder (Optional)
Type: SystemBoolean
Whether to require that the clauses appear in the specified order.

Return Value

Type: SearchSpanDefinitionTDocument
A near span clause.
See Also