public class AssertingSpanWeight extends SpanWeight
SpanWeight.Postings
Weight.DefaultBulkScorer
field, similarity, simWeight
parentQuery
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) |
boolean |
isCacheable(LeafReaderContext ctx) |
SpanScorer |
scorer(LeafReaderContext context) |
bulkScorer, getQuery, scorerSupplier
public AssertingSpanWeight(IndexSearcher searcher, SpanWeight in) throws IOException
in
- the SpanWeight to wrapIOException
- on errorpublic void extractTermContexts(Map<Term,TermContext> contexts)
extractTermContexts
in class SpanWeight
public Spans getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings) throws IOException
getSpans
in class SpanWeight
IOException
public Similarity.SimScorer getSimScorer(LeafReaderContext context) throws IOException
getSimScorer
in class SpanWeight
IOException
public void extractTerms(Set<Term> terms)
extractTerms
in class Weight
public SpanScorer scorer(LeafReaderContext context) throws IOException
scorer
in class SpanWeight
IOException
public boolean isCacheable(LeafReaderContext ctx)
public Explanation explain(LeafReaderContext context, int doc) throws IOException
explain
in class SpanWeight
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.