public abstract class SpanQuery extends Query
| Constructor and Description |
|---|
SpanQuery() |
| Modifier and Type | Method and Description |
|---|---|
Weight |
createWeight(IndexSearcher searcher)
Expert: Constructs an appropriate Weight implementation for this query.
|
abstract java.lang.String |
getField()
Returns the name of the field matched by this query.
|
abstract Spans |
getSpans(AtomicReaderContext context,
Bits acceptDocs,
java.util.Map<Term,TermContext> termContexts)
Expert: Returns the matches for this query in an index.
|
public abstract Spans getSpans(AtomicReaderContext context, Bits acceptDocs, java.util.Map<Term,TermContext> termContexts) throws java.io.IOException
java.io.IOExceptionpublic abstract java.lang.String getField()
Note that this may return null if the query matches no terms.
public Weight createWeight(IndexSearcher searcher) throws java.io.IOException
QueryOnly implemented by primitive queries, which re-write to themselves.
createWeight in class Queryjava.io.IOExceptionCopyright © 2010 - 2024 Adobe. All Rights Reserved