public abstract class SpanPositionCheckQuery extends SpanQuery implements java.lang.Cloneable
| Constructor and Description |
|---|
SpanPositionCheckQuery(SpanQuery match) |
| Modifier and Type | Method and Description |
|---|---|
void |
extractTerms(java.util.Set<Term> terms)
Expert: adds all terms occurring in this query to the terms set.
|
java.lang.String |
getField()
Returns the name of the field matched by this query.
|
SpanQuery |
getMatch() |
Spans |
getSpans(AtomicReaderContext context,
Bits acceptDocs,
java.util.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 java.lang.String getField()
SpanQueryNote that this may return null if the query matches no terms.
public void extractTerms(java.util.Set<Term> terms)
Queryrewritten form.extractTerms in class Querypublic Spans getSpans(AtomicReaderContext context, Bits acceptDocs, java.util.Map<Term,TermContext> termContexts) throws java.io.IOException
SpanQuerypublic Query rewrite(IndexReader reader) throws java.io.IOException
QueryCopyright © 2010 - 2024 Adobe. All Rights Reserved