Construct a SpanNearQuery. Matches spans matching a span from each clause, with up to
CopyC#
slop
total unmatched positions between them. * When
CopyC#
inOrder
is true, the spans from each clause must be * ordered as in
CopyC#
clauses
.

Namespace: Lucene.Net.Search.Spans
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public SpanNearQuery(
	SpanQuery[] clauses,
	int slop,
	bool inOrder
)
Visual Basic
Public Sub New ( _
	clauses As SpanQuery(), _
	slop As Integer, _
	inOrder As Boolean _
)
Visual C++
public:
SpanNearQuery(
	array<SpanQuery^>^ clauses, 
	int slop, 
	bool inOrder
)

Parameters

clauses
Type: array<Lucene.Net.Search.Spans..::..SpanQuery>[]()[][]

[Missing <param name="clauses"/> documentation for "M:Lucene.Net.Search.Spans.SpanNearQuery.#ctor(Lucene.Net.Search.Spans.SpanQuery[],System.Int32,System.Boolean)"]

slop
Type: System..::..Int32

[Missing <param name="slop"/> documentation for "M:Lucene.Net.Search.Spans.SpanNearQuery.#ctor(Lucene.Net.Search.Spans.SpanQuery[],System.Int32,System.Boolean)"]

inOrder
Type: System..::..Boolean

[Missing <param name="inOrder"/> documentation for "M:Lucene.Net.Search.Spans.SpanNearQuery.#ctor(Lucene.Net.Search.Spans.SpanQuery[],System.Int32,System.Boolean)"]

See Also