Module
SpanNearQuery
SpanNearQuery ( clauses, slop )
Matches spans which are near one another.
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | boost(boost) | Sets the boost value for documents matching the Query . |
Object | clauses(clauses) | Sets the clauses used. If passed a single SpanQuery, it is added to the existing list of clauses. If passed an array of SpanQueries, they replace any existing clauses. |
Object | collectPayloads(trueFalse) | Sets whether or not payloads are being used. A payload is an arbitrary byte array stored at a specific position (i.e. token/term). |
Object | inOrder(trueFalse) | Sets whether or not matches are required to be in-order. |
Object | slop(distance) | Sets the maximum number of intervening unmatched positions. |
String | toJSON() | Retrieves the internal query object. This is typically used by
internal API functions so use with caution. |
Method Detail
boost
Object boost ( boost )
Sets the boost value for documents matching the Query .
|
clauses
Object clauses ( clauses )
Sets the clauses used. If passed a single SpanQuery, it is added
to the existing list of clauses. If passed an array of
SpanQueries, they replace any existing clauses.
|
collectPayloads
Object collectPayloads ( trueFalse )
Sets whether or not payloads are being used. A payload is an arbitrary
byte array stored at a specific position (i.e. token/term).
|
inOrder
Object inOrder ( trueFalse )
Sets whether or not matches are required to be in-order.
|
slop
Object slop ( distance )
Sets the maximum number of intervening unmatched positions.
|
toJSON
String toJSON ( )
Retrieves the internal query object. This is typically used by
internal API functions so use with caution.
|