Uses of Class
org.apache.lucene.search.Weight
Package
Description
The logical representation of a
Document
for indexing and
searching.Code to search indices.
-
Uses of Weight in org.apache.lucene.document
Modifier and TypeMethodDescriptionfinal Weight
RangeFieldQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) XYDocValuesPointInGeometryQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) -
Uses of Weight in org.apache.lucene.search
Modifier and TypeClassDescriptionclass
A Weight that has a constant score equal to the boost of the wrapped query.protected class
Expert: the Weight for DisjunctionMaxQuery, used to normalize, score and explain these queries.class
AFilterWeight
contains anotherWeight
and implements all abstract methods by calling the contained weight's method.class
The Weight for IndriAndQuery, used to normalize, score and explain these queries.class
Expert: Weight class for phrase matchingModifier and TypeFieldDescriptionprotected final Weight
FilterWeight.in
protected final Weight
Scorer.weight
the Scorer's parent WeightModifier and TypeFieldDescriptionDisjunctionMaxQuery.DisjunctionMaxWeight.weights
The Weights for our subqueries, in 1-1 correspondence with disjunctsModifier and TypeMethodDescriptionBooleanQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) BoostQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) ConstantScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) DisjunctionMaxQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Create the Weight used to score usDocValuesFieldExistsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) IndexOrDocValuesQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) IndexSearcher.createWeight
(Query query, ScoreMode scoreMode, float boost) Creates aWeight
for the given query, potentially adding caching if possible and configured.IndriAndQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) abstract Weight
IndriQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) KnnVectorFieldExistsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) MatchAllDocsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) MatchNoDocsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) MultiPhraseQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) NormsFieldExistsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) PhraseQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) final Weight
PointInSetQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) final Weight
PointRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Query.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Expert: Constructs an appropriate Weight implementation for this query.SynonymQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) TermInSetQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) TermQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) LRUQueryCache.doCache
(Weight weight, QueryCachingPolicy policy) QueryCache.doCache
(Weight weight, QueryCachingPolicy policy) Return a wrapper around the providedweight
that will cache matching docs per-segment accordingly to the givenpolicy
.Scorer.getWeight()
returns parent WeightModifier and TypeMethodDescriptionLRUQueryCache.doCache
(Weight weight, QueryCachingPolicy policy) QueryCache.doCache
(Weight weight, QueryCachingPolicy policy) Return a wrapper around the providedweight
that will cache matching docs per-segment accordingly to the givenpolicy
.protected Explanation
Expert: low-level implementation method Returns an Explanation that describes howdoc
scored againstweight
.protected void
IndexSearcher.search
(List<LeafReaderContext> leaves, Weight weight, Collector collector) Lower-level search API.ModifierConstructorDescriptionConstantBulkScorer
(BulkScorer bulkScorer, Weight weight, float theScore) ConstantScoreScorer
(Weight weight, float score, ScoreMode scoreMode, DocIdSetIterator disi) Constructor based on aDocIdSetIterator
which will be used to drive iteration.ConstantScoreScorer
(Weight weight, float score, ScoreMode scoreMode, TwoPhaseIterator twoPhaseIterator) Constructor based on aTwoPhaseIterator
.FilterScorer
(Scorer in, Weight weight) Create a new FilterScorer with a specific weightprotected
FilterWeight
(Query query, Weight weight) Alternative constructor.protected
FilterWeight
(Weight weight) Default constructor.protected
IndriAndScorer
(Weight weight, List<Scorer> subScorers, ScoreMode scoreMode, float boost) protected
IndriDisjunctionScorer
(Weight weight, List<Scorer> subScorersList, ScoreMode scoreMode, float boost) protected
IndriScorer
(Weight weight, float boost) protected
Constructs a ScorerTermScorer
(Weight weight, PostingsEnum postingsEnum, LeafSimScorer docScorer) Construct aTermScorer
that will iterate all documents.