Method Near
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
intThe allowable distance between words in the query phrase.
inOrder
boolWhether to require that the clauses appear in the specified order.
Returns
- SearchSpanDefinition<TDocument>
A near span clause.