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.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax public SearchSpanDefinition<TDocument> Near(
IEnumerable<SearchSpanDefinition<TDocument>> clauses,
int slop,
bool inOrder = false
)
Public Function Near (
clauses As IEnumerable(Of SearchSpanDefinition(Of TDocument)),
slop As Integer,
Optional inOrder As Boolean = false
) As SearchSpanDefinition(Of TDocument)
member Near :
clauses : IEnumerable<SearchSpanDefinition<'TDocument>> *
slop : int *
?inOrder : bool
(* Defaults:
let _inOrder = defaultArg inOrder false
*)
-> SearchSpanDefinition<'TDocument>
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:
SearchSpanDefinitionTDocumentA near span clause.
See Also