public abstract class SpanPositionCheckQuery extends SpanQuery implements Cloneable
| Constructor and Description |
|---|
SpanPositionCheckQuery(SpanQuery match) |
| Modifier and Type | Method and Description |
|---|---|
void |
extractTerms(Set<Term> terms)
Expert: adds all terms occurring in this query to the terms set.
|
String |
getField()
Returns the name of the field matched by this query.
|
SpanQuery |
getMatch() |
Spans |
getSpans(AtomicReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts)
Expert: Returns the matches for this query in an index.
|
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
createWeightpublic SpanPositionCheckQuery(SpanQuery match)
public SpanQuery getMatch()
public String getField()
SpanQueryNote that this may return null if the query matches no terms.
public void extractTerms(Set<Term> terms)
Queryrewritten form.extractTerms in class Querypublic Spans getSpans(AtomicReaderContext context, Bits acceptDocs, Map<Term,TermContext> termContexts) throws IOException
SpanQuerygetSpans in class SpanQueryIOExceptionpublic Query rewrite(IndexReader reader) throws IOException
Queryrewrite in class QueryIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved