Constructor SpanNearQuery
SpanNearQuery(SpanQuery[], Int32, Boolean)
Construct a SpanNearQuery. Matches spans matching a span from each
clause, with up to slop
total unmatched positions between
them. * When inOrder
is true
, the spans from each clause
must be * ordered as in clauses
.
Declaration
public SpanNearQuery(SpanQuery[] clauses, int slop, bool inOrder)
Parameters
Type | Name | Description |
---|---|---|
SpanQuery[] | clauses | The clauses to find near each other |
System.Int32 | slop | The slop value |
System.Boolean | inOrder |
|
SpanNearQuery(SpanQuery[], Int32, Boolean, Boolean)
Declaration
public SpanNearQuery(SpanQuery[] clauses, int slop, bool inOrder, bool collectPayloads)
Parameters
Type | Name | Description |
---|---|---|
SpanQuery[] | clauses | |
System.Int32 | slop | |
System.Boolean | inOrder | |
System.Boolean | collectPayloads |