Uses of Class
org.apache.lucene.search.Weight
Packages that use Weight
Package
Description
The logical representation of a
Document for indexing and
searching.Faceted search.
Provides range faceting capabilities.
Misc index tools and index support.
Misc search implementations.
Monitoring framework
Queries that compute score based upon a function.
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) -
Uses of Weight in org.apache.lucene.facet
Methods in org.apache.lucene.facet that return WeightModifier and TypeMethodDescriptionDrillSidewaysQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) -
Uses of Weight in org.apache.lucene.facet.range
Methods in org.apache.lucene.facet.range that return WeightModifier and TypeMethodDescriptionDoubleRange.MultiValueSourceQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) DoubleRange.ValueSourceQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) LongRange.MultiValueSourceQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) LongRange.ValueSourceQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) -
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) Constructors in org.apache.lucene.queries.function with parameters of type WeightModifierConstructorDescription(package private)FunctionScoreWeight(Query query, Weight inner, DoubleValuesSource valueSource, float boost) -
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) -
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()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 WeightModifierConstructorDescriptionQueryProfilerWeight(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.weight(package private) final WeightBooleanWeight.WeightedBooleanClause.weight(package private) final WeightConstantScoreQuery.ConstantBulkScorer.weightprivate final WeightDoubleValuesSource.WeightDoubleValuesSource.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.Methods 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.private TopDocsAbstractKnnVectorQuery.getLeafResults(LeafReaderContext ctx, Weight filterWeight, TimeLimitingKnnCollectorManager timeLimitingKnnCollectorManager) protected voidIndexSearcher.search(IndexSearcher.LeafReaderContextPartition[] partitions, 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) protected voidIndexSearcher.searchLeaf(LeafReaderContext ctx, int minDocId, int maxDocId, Weight weight, Collector collector) Lower-level search APIdefault 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)BooleanScorerSupplier(Weight weight, Map<BooleanClause.Occur, Collection<ScorerSupplier>> subs, ScoreMode scoreMode, int minShouldMatch, int maxDoc) (package private)CachingWrapperWeight(Weight in, QueryCachingPolicy policy) ConstantBulkScorer(BulkScorer bulkScorer, Weight weight, float theScore) protectedFilterWeight(Query query, Weight weight) Alternative constructor.protectedFilterWeight(Weight weight) Default constructor.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 WeightModifierConstructorDescriptionBlockJoinWeight(Query joinQuery, Weight childWeight, BitSetProducer parentsFilter, ScoreMode scoreMode) 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)