Uses of Class
org.apache.lucene.search.Weight
Packages that use Weight
Package
Description
The logical representation of a
Document
for indexing and
searching.Misc index tools and index support.
Misc search implementations.
Monitoring framework
Queries that compute score based upon a function.
FunctionValues for different data types.
A variety of functions to use with FunctionQuery.
Intervals queries
The payloads package provides Query mechanisms for finding and using payloads.
The calculus of spans.
This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial
queries.
Code to search indices.
Grouping.
Support for index-time and query-time joins.
This package contains several components useful to build a highlighter on top of the
Matches
API.Support for document suggestion
Lucene field & query support for the spatial geometry implemented in
org.apache.lucene.spatial3d.geom
.-
Uses of Weight in org.apache.lucene.document
Methods in org.apache.lucene.document that return WeightModifier and TypeMethodDescriptionBinaryRangeFieldRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FeatureQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) LatLonDocValuesBoxQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) LatLonDocValuesQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) LatLonPointDistanceFeatureQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) LatLonPointDistanceQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) LongDistanceFeatureQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) final Weight
RangeFieldQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SortedNumericDocValuesRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SortedNumericDocValuesSetQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SortedSetDocValuesRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) final Weight
SpatialQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) XYDocValuesPointInGeometryQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) XYPointInGeometryQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Methods in org.apache.lucene.document with parameters of type WeightModifier and TypeMethodDescriptionprivate Scorer
SpatialQuery.RelationScorerSupplier.getContainsDenseScorer
(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode) private Scorer
SpatialQuery.RelationScorerSupplier.getDenseScorer
(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode) Scorer used for WITHIN and DISJOINTprotected Scorer
SpatialQuery.RelationScorerSupplier.getScorer
(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode) private Scorer
SpatialQuery.RelationScorerSupplier.getSparseScorer
(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode) Scorer used for INTERSECTS and single value pointsConstructors in org.apache.lucene.document with parameters of type WeightModifierConstructorDescriptionprotected
DistanceScorer
(Weight weight, int maxDoc, long leadCost, float boost, PointValues pointValues, NumericDocValues docValues) protected
DistanceScorer
(Weight weight, int maxDoc, long leadCost, float boost, PointValues pointValues, NumericDocValues docValues) -
Uses of Weight in org.apache.lucene.misc.index
Constructors in org.apache.lucene.misc.index with parameters of type WeightModifierConstructorDescriptionDocumentFilteredLeafIndexReader
(LeafReaderContext context, Weight preserveWeight, boolean negateFilter) -
Uses of Weight in org.apache.lucene.misc.search
Methods in org.apache.lucene.misc.search that return WeightModifier and TypeMethodDescriptionHumanReadableQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) -
Uses of Weight in org.apache.lucene.monitor
Methods in org.apache.lucene.monitor that return WeightModifier and TypeMethodDescriptionForceNoBulkScoringQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) -
Uses of Weight in org.apache.lucene.queries.function
Subclasses of Weight in org.apache.lucene.queries.functionModifier and TypeClassDescriptionprotected class
Creates FunctionQuery scorer instancesprivate class
private static class
Fields in org.apache.lucene.queries.function declared as WeightModifier and TypeFieldDescription(package private) final Weight
FunctionScoreQuery.FunctionScoreWeight.inner
Methods in org.apache.lucene.queries.function that return WeightModifier and TypeMethodDescriptionFunctionMatchQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FunctionQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FunctionRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FunctionScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Methods in org.apache.lucene.queries.function with parameters of type WeightModifier and TypeMethodDescriptionFunctionValues.getRangeScorer
(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) Yields aScorer
that matches documents with values between the specified range, and that which produces scores equal toFunctionValues.floatVal(int)
.FunctionValues.getScorer
(Weight weight, LeafReaderContext readerContext) Yields aScorer
that matches all documents, and that which produces scores equal toFunctionValues.floatVal(int)
.Constructors in org.apache.lucene.queries.function with parameters of type WeightModifierConstructorDescription(package private)
FunctionScoreWeight
(Query query, Weight inner, DoubleValuesSource valueSource, float boost) protected
ValueSourceScorer
(Weight weight, LeafReaderContext readerContext, FunctionValues values) -
Uses of Weight in org.apache.lucene.queries.function.docvalues
Methods in org.apache.lucene.queries.function.docvalues with parameters of type WeightModifier and TypeMethodDescriptionDocTermsIndexDocValues.getRangeScorer
(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) DoubleDocValues.getRangeScorer
(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) IntDocValues.getRangeScorer
(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) LongDocValues.getRangeScorer
(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) -
Uses of Weight in org.apache.lucene.queries.function.valuesource
Fields in org.apache.lucene.queries.function.valuesource declared as Weight -
Uses of Weight in org.apache.lucene.queries.intervals
Subclasses of Weight in org.apache.lucene.queries.intervalsMethods in org.apache.lucene.queries.intervals that return WeightModifier and TypeMethodDescriptionIntervalQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Constructors in org.apache.lucene.queries.intervals with parameters of type WeightModifierConstructorDescription(package private)
IntervalScorer
(Weight weight, IntervalIterator intervals, int minExtent, float boost, IntervalScoreFunction scoreFunction) -
Uses of Weight in org.apache.lucene.queries.payloads
Subclasses of Weight in org.apache.lucene.queries.payloadsModifier and TypeClassDescriptionprivate class
class
Weight that pulls its Spans using a PayloadSpanCollector -
Uses of Weight in org.apache.lucene.queries.spans
Subclasses of Weight in org.apache.lucene.queries.spansModifier and TypeClassDescriptionclass
Creates SpanContainingQuery scorer instancesclass
private class
class
Creates SpanNearQuery scorer instancesclass
Creates SpanNotQuery scorer instancesclass
Creates SpanOrQuery scorer instancesclass
Creates SpanPositionCheckQuery scorer instancesclass
Creates SpanTermQuery scorer instancesclass
Expert-only.class
Creates SpanWithinQuery scorer instances -
Uses of Weight in org.apache.lucene.sandbox.search
Subclasses of Weight in org.apache.lucene.sandbox.searchModifier and TypeClassDescription(package private) class
private static class
(package private) class
(package private) final class
Fields in org.apache.lucene.sandbox.search with type parameters of type WeightModifier and TypeFieldDescriptionprivate final Collection
<Weight> CoveringQuery.CoveringWeight.weights
Methods in org.apache.lucene.sandbox.search that return WeightModifier and TypeMethodDescriptionCombinedFieldQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) CoveringQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) final Weight
MultiRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) PhraseWildcardQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) QueryProfilerIndexSearcher.createWeight
(Query query, ScoreMode scoreMode, float boost) TermAutomatonQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) protected Weight
PhraseWildcardQuery.earlyStopWeight()
QueryProfilerScorer.getWeight()
protected Weight
PhraseWildcardQuery.noMatchWeight()
Methods in org.apache.lucene.sandbox.search with parameters of type WeightConstructors in org.apache.lucene.sandbox.search with parameters of type WeightModifierConstructorDescription(package private)
CombinedFieldScorer
(Weight weight, DisiPriorityQueue queue, DocIdSetIterator iterator, MultiNormsLeafSimScorer simScorer) (package private)
CoveringScorer
(Weight weight, Collection<Scorer> scorers, LongValues minMatchValues, int maxDoc) QueryProfilerWeight
(Weight subQueryWeight, QueryProfilerBreakdown profile) Constructor parameters in org.apache.lucene.sandbox.search with type arguments of type WeightModifierConstructorDescription(package private)
CoveringWeight
(Query query, Collection<Weight> weights, LongValuesSource minimumNumberMatch) -
Uses of Weight in org.apache.lucene.search
Subclasses of Weight in org.apache.lucene.searchModifier and TypeClassDescriptionprotected static class
(package private) final class
Expert: the Weight for BooleanQuery, used to normalize, score and explain these queries.class
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.private class
class
Expert: Weight class for phrase matching(package private) class
(package private) final class
Fields in org.apache.lucene.search declared as WeightModifier and TypeFieldDescriptionprotected final Weight
FilterWeight.in
private final Weight
LRUQueryCache.CachingWrapperWeight.in
(package private) final Weight
AbstractMultiTermQueryConstantScoreWrapper.WeightOrDocIdSetIterator.weight
private final Weight
Boolean2ScorerSupplier.weight
(package private) final Weight
BooleanWeight.WeightedBooleanClause.weight
(package private) final Weight
ConstantScoreQuery.ConstantBulkScorer.weight
private final Weight
DoubleValuesSource.WeightDoubleValuesSource.weight
protected final Weight
Scorer.weight
the Scorer's parent Weightprivate Weight
TotalHitCountCollector.weight
Fields in org.apache.lucene.search with type parameters of type WeightModifier and TypeFieldDescriptionDisjunctionMaxQuery.DisjunctionMaxWeight.weights
The Weights for our subqueries, in 1-1 correspondence with disjunctsIndriAndWeight.weights
Methods in org.apache.lucene.search that return WeightModifier and TypeMethodDescriptionAbstractKnnVectorQuery.DocAndScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) BooleanQuery.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 usDocValuesRewriteMethod.MultiTermQueryDocValuesWrapper.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FieldExistsQuery.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.IndexSortSortedNumericDocValuesRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) IndriAndQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) abstract Weight
IndriQuery.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) MultiTermQueryConstantScoreBlendedWrapper.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) MultiTermQueryConstantScoreWrapper.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) NamedMatches.NamedQuery.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) 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 WeightMethods in org.apache.lucene.search with parameters of type 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
.private TopDocs
AbstractKnnVectorQuery.getLeafResults
(LeafReaderContext ctx, Weight filterWeight) protected void
IndexSearcher.search
(List<LeafReaderContext> leaves, Weight weight, Collector collector) Lower-level search API.private <C extends Collector,
T>
TIndexSearcher.search
(Weight weight, CollectorManager<C, T> collectorManager, C firstCollector) private TopDocs
AbstractKnnVectorQuery.searchLeaf
(LeafReaderContext ctx, Weight filterWeight) default void
Set theWeight
that will be used to produce scorers that will feedLeafCollector
s.void
void
void
private static Scorer
MultiTermQueryConstantScoreBlendedWrapper.wrapWithDummyScorer
(Weight weight, DocIdSetIterator disi) Wraps a DISI with a "dummy" scorer so we can easily useDisiWrapper
andDisjunctionDISIApproximation
as-is.Constructors in org.apache.lucene.search with parameters of type WeightModifierConstructorDescription(package private)
BlockMaxConjunctionScorer
(Weight weight, Collection<Scorer> scorersList) Create a newBlockMaxConjunctionScorer
from scoring clauses.(package private)
Boolean2ScorerSupplier
(Weight weight, Map<BooleanClause.Occur, Collection<ScorerSupplier>> subs, ScoreMode scoreMode, int minShouldMatch) (package private)
CachingWrapperWeight
(Weight in, QueryCachingPolicy policy) (package private)
ConjunctionScorer
(Weight weight, Collection<Scorer> required, Collection<Scorer> scorers) ConstantBulkScorer
(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
.(package private)
DisjunctionMaxScorer
(Weight weight, float tieBreakerMultiplier, List<Scorer> subScorers, ScoreMode scoreMode) Creates a new instance of DisjunctionMaxScorerprotected
DisjunctionScorer
(Weight weight, List<Scorer> subScorers, ScoreMode scoreMode) (package private)
DisjunctionSumScorer
(Weight weight, List<Scorer> subScorers, ScoreMode scoreMode) Construct aDisjunctionScorer
.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) (package private)
PhraseScorer
(Weight weight, PhraseMatcher matcher, ScoreMode scoreMode, LeafSimScorer simScorer) protected
Constructs a Scorer(package private)
SynonymScorer
(Weight weight, DisiPriorityQueue queue, DocIdSetIterator iterator, ImpactsDISI impactsDisi, LeafSimScorer simScorer) TermScorer
(Weight weight, ImpactsEnum impactsEnum, LeafSimScorer docScorer, boolean topLevelScoringClause) Construct aTermScorer
that will use impacts to skip blocks of non-competitive documents.TermScorer
(Weight weight, PostingsEnum postingsEnum, LeafSimScorer docScorer) Construct aTermScorer
that will iterate all documents.(package private)
WANDScorer
(Weight weight, Collection<Scorer> scorers, int minShouldMatch, ScoreMode scoreMode) private
WeightDoubleValuesSource
(Weight weight) (package private)
WeightedBooleanClause
(BooleanClause clause, Weight weight) (package private)
WeightOrDocIdSetIterator
(Weight weight) -
Uses of Weight in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as WeightConstructors in org.apache.lucene.search.grouping with parameters of type WeightModifierConstructorDescriptionBlockGroupingCollector
(Sort groupSort, int topNGroups, boolean needsScores, Weight lastDocPerGroup) Create the single pass collector. -
Uses of Weight in org.apache.lucene.search.join
Subclasses of Weight in org.apache.lucene.search.joinModifier and TypeClassDescription(package private) final class
(package private) final class
private static class
private static class
Fields in org.apache.lucene.search.join declared as WeightMethods in org.apache.lucene.search.join that return WeightModifier and TypeMethodDescriptionGlobalOrdinalsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) GlobalOrdinalsWithScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) ParentChildrenBlockJoinQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) final Weight
PointInSetIncludingScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) TermsIncludingScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) ToChildBlockJoinQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) ToParentBlockJoinQuery.createWeight
(IndexSearcher searcher, ScoreMode weightScoreMode, float boost) Methods in org.apache.lucene.search.join with parameters of type WeightModifier and TypeMethodDescriptionToParentBlockJoinQuery.BlockJoinScorer.explain
(LeafReaderContext context, Weight childWeight, ScoreMode scoreMode) Constructors in org.apache.lucene.search.join with parameters of type WeightModifierConstructorDescriptionBaseGlobalOrdinalScorer
(Weight weight, SortedDocValues values, DocIdSetIterator approximationScorer, float boost) BlockJoinScorer
(Weight weight, Scorer childScorer, BitSet parentBits, ScoreMode scoreMode) BlockJoinWeight
(Query joinQuery, Weight childWeight, BitSetProducer parentsFilter, ScoreMode scoreMode) (package private)
MVInOrderScorer
(Weight weight, TermsEnum termsEnum, int maxDoc, long cost, float boost) OrdinalMapScorer
(Weight weight, float score, LongBitSet foundOrds, SortedDocValues values, DocIdSetIterator approximationScorer, LongValues segmentOrdToGlobalOrdLookup) OrdinalMapScorer
(Weight weight, GlobalOrdinalsWithScoreCollector collector, float boost, SortedDocValues values, DocIdSetIterator approximation, LongValues segmentOrdToGlobalOrdLookup) SegmentOrdinalScorer
(Weight weight, float score, LongBitSet foundOrds, SortedDocValues values, DocIdSetIterator approximationScorer) SegmentOrdinalScorer
(Weight weight, GlobalOrdinalsWithScoreCollector collector, SortedDocValues values, float boost, DocIdSetIterator approximation) (package private)
SVInOrderScorer
(Weight weight, TermsEnum termsEnum, int maxDoc, long cost, float boost) ToChildBlockJoinScorer
(Weight weight, Scorer parentScorer, BitSet parentBits, boolean doScores) ToChildBlockJoinWeight
(Query joinQuery, Weight parentWeight, BitSetProducer parentsFilter, boolean doScores) (package private)
(package private)
-
Uses of Weight in org.apache.lucene.search.matchhighlight
Fields in org.apache.lucene.search.matchhighlight declared as Weight -
Uses of Weight in org.apache.lucene.search.suggest.document
Subclasses of Weight in org.apache.lucene.search.suggest.documentModifier and TypeClassDescriptionclass
Expert: the Weight for CompletionQuery, used to score and explain these queries.private static class
private static class
Methods in org.apache.lucene.search.suggest.document that return WeightModifier and TypeMethodDescriptionContextQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FuzzyCompletionQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) PrefixCompletionQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) RegexCompletionQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) -
Uses of Weight in org.apache.lucene.spatial3d
Methods in org.apache.lucene.spatial3d that return WeightModifier and TypeMethodDescriptionPointInGeo3DShapeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost)