|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectQuery
SpanQuery
SpanFirstQuery
public class SpanFirstQuery
Matches spans near the beginning of a field.
Field Summary | |
---|---|
private int |
end
|
private SpanQuery |
match
|
Constructor Summary | |
---|---|
SpanFirstQuery(SpanQuery match,
int end)
Construct a SpanFirstQuery matching spans in match whose end
position is less than or equal to end . |
Method Summary | |
---|---|
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)
|
Methods inherited from class SpanQuery |
---|
createWeight, getSpanRecording, setSpanRecording |
Methods inherited from class Query |
---|
clone, combine, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private SpanQuery match
private int end
Constructor Detail |
---|
public SpanFirstQuery(SpanQuery match, int end)
match
whose end
position is less than or equal to end
.
Method Detail |
---|
public SpanQuery getMatch()
public int getEnd()
public String getField()
SpanQuery
getField
in class SpanQuery
public Collection getTerms()
SpanQuery
getTerms
in class 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
public Spans getSpans(IndexReader reader, Searcher searcher) throws IOException
SpanQuery
getSpans
in class SpanQuery
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |