public class SpanFirstQuery extends SpanQuery
Modifier and Type | Field and Description |
---|---|
private int |
end |
private SpanQuery |
match |
Constructor and Description |
---|
SpanFirstQuery(SpanQuery match,
int end)
Construct a SpanFirstQuery matching spans in
match whose end
position is less than or equal to end . |
Modifier and Type | Method and Description |
---|---|
int |
getEnd()
Return the maximum end position permitted in a match.
|
String |
getField()
Returns the name of the field matched by this query.
|
SpanQuery |
getMatch()
Return the SpanQuery whose matches are filtered.
|
Spans |
getSpans(IndexReader reader,
Searcher searcher)
Expert: Returns the matches for this query in an index.
|
Query[] |
getSubQueries() |
Collection |
getTerms()
Returns a collection of all terms matched by this query.
|
Query |
rewrite(IndexReader reader) |
String |
toString(String field) |
createWeight, getSpanRecording, setSpanRecording
private SpanQuery match
private int end
public SpanFirstQuery(SpanQuery match, int end)
match
whose end
position is less than or equal to end
.public SpanQuery getMatch()
public int getEnd()
public String getField()
SpanQuery
public Collection getTerms()
SpanQuery
public Query[] getSubQueries()
public Query rewrite(IndexReader reader) throws IOException
rewrite
in class Query
IOException
public String toString(String field)
toString
in class Query