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 WeightRangeFieldQuery.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 WeightSpatialQuery.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 ScorerSpatialQuery.RelationScorerSupplier.getContainsDenseScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode) private ScorerSpatialQuery.RelationScorerSupplier.getDenseScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode) Scorer used for WITHIN and DISJOINTprotected ScorerSpatialQuery.RelationScorerSupplier.getScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode) private ScorerSpatialQuery.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 WeightModifierConstructorDescriptionprotectedDistanceScorer(Weight weight, int maxDoc, long leadCost, float boost, PointValues pointValues, NumericDocValues docValues) protectedDistanceScorer(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
Fields in org.apache.lucene.monitor declared as WeightMethods in org.apache.lucene.monitor that return WeightModifier and TypeMethodDescriptionForceNoBulkScoringQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) Methods in org.apache.lucene.monitor with parameters of type Weight -
Uses of Weight in org.apache.lucene.queries.function
Subclasses of Weight in org.apache.lucene.queries.functionModifier and TypeClassDescriptionprotected classCreates FunctionQuery scorer instancesprivate classprivate static classFields in org.apache.lucene.queries.function declared as WeightModifier and TypeFieldDescription(package private) final WeightFunctionScoreQuery.FunctionScoreWeight.innerMethods 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 aScorerthat matches documents with values between the specified range, and that which produces scores equal toFunctionValues.floatVal(int).FunctionValues.getScorer(Weight weight, LeafReaderContext readerContext) Yields aScorerthat 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) protectedValueSourceScorer(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 classclassWeight 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 TypeClassDescriptionclassCreates SpanContainingQuery scorer instancesclassprivate classclassCreates SpanNearQuery scorer instancesclassCreates SpanNotQuery scorer instancesclassCreates SpanOrQuery scorer instancesclassCreates SpanPositionCheckQuery scorer instancesclassCreates SpanTermQuery scorer instancesclassExpert-only.classCreates 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) classprivate static class(package private) class(package private) final classFields in org.apache.lucene.sandbox.search with type parameters of type WeightModifier and TypeFieldDescriptionprivate final Collection<Weight> CoveringQuery.CoveringWeight.weightsMethods 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 WeightMultiRangeQuery.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 WeightPhraseWildcardQuery.earlyStopWeight()QueryProfilerScorer.getWeight()protected WeightPhraseWildcardQuery.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 classExpert: the Weight for BooleanQuery, used to normalize, score and explain these queries.classA Weight that has a constant score equal to the boost of the wrapped query.protected classExpert: the Weight for DisjunctionMaxQuery, used to normalize, score and explain these queries.classAFilterWeightcontains anotherWeightand implements all abstract methods by calling the contained weight's method.classThe Weight for IndriAndQuery, used to normalize, score and explain these queries.private classclassExpert: Weight class for phrase matching(package private) class(package private) final classFields in org.apache.lucene.search declared as WeightModifier and TypeFieldDescriptionprotected final WeightFilterWeight.inprivate final WeightLRUQueryCache.CachingWrapperWeight.in(package private) final WeightAbstractMultiTermQueryConstantScoreWrapper.WeightOrDocIdSetIterator.weightprivate final WeightBoolean2ScorerSupplier.weight(package private) final WeightBooleanWeight.WeightedBooleanClause.weight(package private) final WeightConstantScoreQuery.ConstantBulkScorer.weightprivate final WeightDoubleValuesSource.WeightDoubleValuesSource.weightprotected final WeightScorer.weightthe Scorer's parent Weightprivate WeightTotalHitCountCollector.weightFields in org.apache.lucene.search with type parameters of type WeightModifier and TypeFieldDescriptionDisjunctionMaxQuery.DisjunctionMaxWeight.weightsThe Weights for our subqueries, in 1-1 correspondence with disjunctsIndriAndWeight.weightsMethods in org.apache.lucene.search that return WeightModifier and TypeMethodDescriptionAbstractKnnVectorQuery.DocAndScoreQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) AbstractVectorSimilarityQuery.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 aWeightfor 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 WeightIndriQuery.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 WeightPointInSetQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) final WeightPointRangeQuery.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 providedweightthat 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 providedweightthat will cache matching docs per-segment accordingly to the givenpolicy.protected ExplanationExpert: low-level implementation method Returns an Explanation that describes howdocscored againstweight.(package private) static AbstractVectorSimilarityQuery.VectorSimilarityScorerAbstractVectorSimilarityQuery.VectorSimilarityScorer.fromAcceptDocs(Weight weight, float boost, VectorScorer scorer, DocIdSetIterator acceptDocs, float threshold) (package private) static AbstractVectorSimilarityQuery.VectorSimilarityScorerAbstractVectorSimilarityQuery.VectorSimilarityScorer.fromScoreDocs(Weight weight, float boost, ScoreDoc[] scoreDocs) private TopDocsAbstractKnnVectorQuery.getLeafResults(LeafReaderContext ctx, Weight filterWeight, TimeLimitingKnnCollectorManager timeLimitingKnnCollectorManager) protected voidIndexSearcher.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 TopDocsAbstractKnnVectorQuery.searchLeaf(LeafReaderContext ctx, Weight filterWeight, TimeLimitingKnnCollectorManager timeLimitingKnnCollectorManager) default voidSet theWeightthat will be used to produce scorers that will feedLeafCollectors.voidvoidvoidprivate static ScorerMultiTermQueryConstantScoreBlendedWrapper.wrapWithDummyScorer(Weight weight, DocIdSetIterator disi) Wraps a DISI with a "dummy" scorer so we can easily useDisiWrapperandDisjunctionDISIApproximationas-is.Constructors in org.apache.lucene.search with parameters of type WeightModifierConstructorDescription(package private)BlockMaxConjunctionScorer(Weight weight, Collection<Scorer> scorersList) Create a newBlockMaxConjunctionScorerfrom 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 aDocIdSetIteratorwhich 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 DisjunctionMaxScorerprotectedDisjunctionScorer(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 weightprotectedFilterWeight(Query query, Weight weight) Alternative constructor.protectedFilterWeight(Weight weight) Default constructor.protectedIndriAndScorer(Weight weight, List<Scorer> subScorers, ScoreMode scoreMode, float boost) protectedIndriDisjunctionScorer(Weight weight, List<Scorer> subScorersList, ScoreMode scoreMode, float boost) protectedIndriScorer(Weight weight, float boost) (package private)PhraseScorer(Weight weight, PhraseMatcher matcher, ScoreMode scoreMode, LeafSimScorer simScorer) protectedConstructs 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 aTermScorerthat will use impacts to skip blocks of non-competitive documents.TermScorer(Weight weight, PostingsEnum postingsEnum, LeafSimScorer docScorer) Construct aTermScorerthat will iterate all documents.(package private)VectorSimilarityScorer(Weight weight, DocIdSetIterator iterator, float[] cachedScore) (package private)WANDScorer(Weight weight, Collection<Scorer> scorers, int minShouldMatch, ScoreMode scoreMode) privateWeightDoubleValuesSource(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 classprivate static classprivate static classFields 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 WeightPointInSetIncludingScoreQuery.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 TypeClassDescriptionclassExpert: the Weight for CompletionQuery, used to score and explain these queries.private static classprivate static classMethods 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)