private static class ToParentBlockJoinQuery.BlockJoinWeight extends FilterWeight
Weight.DefaultBulkScorer| Modifier and Type | Field and Description |
|---|---|
private BitSetProducer |
parentsFilter |
private ScoreMode |
scoreMode |
inparentQuery| Constructor and Description |
|---|
BlockJoinWeight(Query joinQuery,
Weight childWeight,
BitSetProducer parentsFilter,
ScoreMode scoreMode) |
| Modifier and Type | Method and Description |
|---|---|
Explanation |
explain(LeafReaderContext context,
int doc)
An explanation of the score computation for the named document.
|
Matches |
matches(LeafReaderContext context,
int doc)
Returns
Matches for a specific document, or null if the document
does not match the parent query
A query match that contains no position information (for example, a Point or
DocValues query) will return MatchesUtils.MATCH_WITH_NO_TERMS |
Scorer |
scorer(LeafReaderContext context)
Returns a
Scorer which can iterate in order over all matching
documents and assign them a score. |
ScorerSupplier |
scorerSupplier(LeafReaderContext context)
Optional method.
|
extractTerms, isCacheablebulkScorer, getQueryprivate final BitSetProducer parentsFilter
private final ScoreMode scoreMode
public BlockJoinWeight(Query joinQuery, Weight childWeight, BitSetProducer parentsFilter, ScoreMode scoreMode)
public Scorer scorer(LeafReaderContext context) throws java.io.IOException
WeightScorer which can iterate in order over all matching
documents and assign them a score.
NOTE: null can be returned if no documents will be scored by this query.
NOTE: The returned Scorer does not have
LeafReader.getLiveDocs() applied, they need to be checked on top.
scorer in class FilterWeightcontext - the LeafReaderContext for which to return the Scorer.Scorer which scores documents in/out-of order.java.io.IOException - if there is a low-level I/O errorpublic ScorerSupplier scorerSupplier(LeafReaderContext context) throws java.io.IOException
WeightScorerSupplier, which allows to know the cost of the Scorer
before building it. The default implementation calls Weight.scorer(org.apache.lucene.index.LeafReaderContext) and
builds a ScorerSupplier wrapper around it.scorerSupplier in class Weightjava.io.IOExceptionWeight.scorer(org.apache.lucene.index.LeafReaderContext)public Explanation explain(LeafReaderContext context, int doc) throws java.io.IOException
Weightexplain in class FilterWeightcontext - the readers context to create the Explanation for.doc - the document's id relative to the given context's readerjava.io.IOException - if an IOException occurspublic Matches matches(LeafReaderContext context, int doc) throws java.io.IOException
WeightMatches for a specific document, or null if the document
does not match the parent query
A query match that contains no position information (for example, a Point or
DocValues query) will return MatchesUtils.MATCH_WITH_NO_TERMSmatches in class FilterWeightcontext - the reader's context to create the Matches fordoc - the document's id relative to the given context's readerjava.io.IOException