public abstract class RandomAccessWeight extends ConstantScoreWeight
Weights that are based on random-access structures such as live docs or doc values. Such weights return a
Scorerwhich consists of an approximation that matches everything, and a confirmation phase that first checks live docs and then the
|Modifier||Constructor and Description|
|Modifier and Type||Method and Description|
boost, explain, extractTerms, getValueForNormalization, normalize, queryNorm, score
protected RandomAccessWeight(Query query)
protected abstract Bits getMatchingDocs(LeafReaderContext context) throws IOException
Bitsinstance representing documents that match this weight on the given context. A return value of
nullindicates that no documents matched. Note: it is not needed to care about live docs as they will be checked before the returned bits.
public final Scorer scorer(LeafReaderContext context) throws IOException
Scorerwhich 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.
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.