|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.Query
org.apache.lucene.search.spans.SpanQuery
public abstract class SpanQuery
Base class for span-based queries.
Constructor Summary | |
---|---|
SpanQuery()
|
Method Summary | |
---|---|
Weight |
createWeight(IndexSearcher searcher)
Expert: Constructs an appropriate Weight implementation for this query. |
abstract String |
getField()
Returns the name of the field matched by this query. |
abstract Spans |
getSpans(AtomicReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts)
Expert: Returns the matches for this query in an index. |
Methods inherited from class org.apache.lucene.search.Query |
---|
clone, equals, extractTerms, getBoost, hashCode, rewrite, setBoost, toString, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpanQuery()
Method Detail |
---|
public abstract Spans getSpans(AtomicReaderContext context, Bits acceptDocs, Map<Term,TermContext> termContexts) throws IOException
IOException
public abstract String getField()
Note that this may return null if the query matches no terms.
public Weight createWeight(IndexSearcher searcher) throws IOException
Query
Only implemented by primitive queries, which re-write to themselves.
createWeight
in class Query
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |