public abstract class SpanQuery
extends Query
Modifier and Type | Field and Description |
---|---|
private int |
spanRecording |
Constructor and Description |
---|
SpanQuery() |
Modifier and Type | Method and Description |
---|---|
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.
|
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