public class SpanPositionRangeQuery extends SpanPositionCheckQuery
SpanPositionCheckQuery.getMatch()
lies between a start and end positionSpanPositionCheckQuery.AcceptStatus, SpanPositionCheckQuery.PositionCheckSpan
Modifier and Type | Field and Description |
---|---|
protected int |
end |
protected int |
start |
match
Constructor and Description |
---|
SpanPositionRangeQuery(SpanQuery match,
int start,
int end) |
Modifier and Type | Method and Description |
---|---|
protected SpanPositionCheckQuery.AcceptStatus |
acceptPosition(Spans spans)
Implementing classes are required to return whether the current position is a match for the passed in
"match"
SpanQuery . |
Object |
clone()
Returns a clone of this query.
|
boolean |
equals(Object o) |
int |
getEnd() |
int |
getStart() |
int |
hashCode() |
String |
toString(String field)
Prints a query to a string, with
field assumed to be the
default field and omitted. |
extractTerms, getField, getMatch, getSpans, rewrite
createWeight
combine, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight
public SpanPositionRangeQuery(SpanQuery match, int start, int end)
protected SpanPositionCheckQuery.AcceptStatus acceptPosition(Spans spans) throws IOException
SpanPositionCheckQuery
SpanQuery
.
This is only called if the underlying Spans.next()
for the
match is successfulacceptPosition
in class SpanPositionCheckQuery
spans
- The Spans
instance, positioned at the spot to checkIOException
Spans.next()
public int getStart()
public int getEnd()
public String toString(String field)
Query
field
assumed to be the
default field and omitted.
The representation used is one that is supposed to be readable
by QueryParser
. However,
there are the following limitations: