public class AssertingSpanWeight extends SpanWeight
SpanWeight.PostingsWeight.DefaultBulkScorerfield, similarity, simWeightparentQuery| Constructor and Description |
|---|
AssertingSpanWeight(IndexSearcher searcher,
SpanWeight in)
Create an AssertingSpanWeight
|
| Modifier and Type | Method and Description |
|---|---|
Explanation |
explain(LeafReaderContext context,
int doc) |
void |
extractTermContexts(Map<Term,TermContext> contexts) |
void |
extractTerms(Set<Term> terms) |
Similarity.SimScorer |
getSimScorer(LeafReaderContext context) |
Spans |
getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings) |
float |
getValueForNormalization() |
void |
normalize(float queryNorm,
float boost) |
Scorer |
scorer(LeafReaderContext context) |
bulkScorer, getQuerypublic AssertingSpanWeight(IndexSearcher searcher, SpanWeight in) throws IOException
in - the SpanWeight to wrapIOException - on errorpublic void extractTermContexts(Map<Term,TermContext> contexts)
extractTermContexts in class SpanWeightpublic Spans getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings) throws IOException
getSpans in class SpanWeightIOExceptionpublic Similarity.SimScorer getSimScorer(LeafReaderContext context) throws IOException
getSimScorer in class SpanWeightIOExceptionpublic void extractTerms(Set<Term> terms)
extractTerms in class Weightpublic float getValueForNormalization()
throws IOException
getValueForNormalization in class SpanWeightIOExceptionpublic void normalize(float queryNorm,
float boost)
normalize in class SpanWeightpublic Scorer scorer(LeafReaderContext context) throws IOException
scorer in class SpanWeightIOExceptionpublic Explanation explain(LeafReaderContext context, int doc) throws IOException
explain in class SpanWeightIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.