|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectQuery
SpanQuery
public abstract class SpanQuery
Base class for span-based queries.
Field Summary | |
---|---|
private int |
spanRecording
|
Constructor Summary | |
---|---|
SpanQuery()
|
Method Summary | |
---|---|
protected Weight |
createWeight(Searcher searcher)
|
abstract String |
getField()
Returns the name of the field matched by this query. |
int |
getSpanRecording()
Retrieve the max number of spans to record for a given document, or zero if span recording is currently off. |
abstract Spans |
getSpans(IndexReader reader,
Searcher searcher)
Expert: Returns the matches for this query in an index. |
abstract Collection |
getTerms()
Returns a collection of all terms matched by this query. |
void |
setSpanRecording(int n)
Turn on recording of matching spans, and set the max number of spans to record for a given document. |
Methods inherited from class Query |
---|
clone, combine, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, rewrite, setBoost, toString, toString, weight |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int spanRecording
Constructor Detail |
---|
public SpanQuery()
Method Detail |
---|
public abstract Spans getSpans(IndexReader reader, Searcher searcher) throws IOException
IOException
public abstract String getField()
public abstract Collection getTerms()
public void setSpanRecording(int n)
public int getSpanRecording()
protected Weight createWeight(Searcher searcher)
createWeight
in class Query
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |