Uses of Class
org.apache.lucene.search.Weight
-
Packages that use Weight Package Description org.apache.lucene.document The logical representation of aDocument
for indexing and searching.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.monitor Monitoring frameworkorg.apache.lucene.queries.function Queries that compute score based upon a function.org.apache.lucene.queries.function.docvalues FunctionValues for different data types.org.apache.lucene.queries.function.valuesource A variety of functions to use with FunctionQuery.org.apache.lucene.queries.intervals Intervals queriesorg.apache.lucene.queries.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.search Code to search indices.org.apache.lucene.search.grouping Grouping.org.apache.lucene.search.join Support for index-time and query-time joins.org.apache.lucene.search.spans The calculus of spans.org.apache.lucene.search.suggest.document Support for document suggestion -
-
Uses of Weight in org.apache.lucene.document
Methods in org.apache.lucene.document that return Weight Modifier and Type Method Description Weight
BinaryRangeFieldRangeQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
FeatureQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
LatLonDocValuesBoxQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
LatLonDocValuesDistanceQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
LatLonDocValuesPointInPolygonQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
LatLonPointDistanceFeatureQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
LatLonPointDistanceQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
LatLonPointInPolygonQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
LongDistanceFeatureQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
RangeFieldQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
ShapeQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
SortedNumericDocValuesRangeQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
SortedSetDocValuesRangeQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Methods in org.apache.lucene.document with parameters of type Weight Modifier and Type Method Description private Scorer
ShapeQuery.RelationScorerSupplier. getContainsDenseScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode)
private Scorer
ShapeQuery.RelationScorerSupplier. getDenseScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode)
Scorer used for WITHIN and DISJOINTprotected Scorer
ShapeQuery.RelationScorerSupplier. getScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode)
private Scorer
ShapeQuery.RelationScorerSupplier. getSparseScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode)
Scorer used for INTERSECTSConstructors in org.apache.lucene.document with parameters of type Weight Constructor Description DistanceScorer(Weight weight, int maxDoc, long leadCost, float boost, PointValues pointValues, NumericDocValues docValues)
DistanceScorer(Weight weight, int maxDoc, long leadCost, float boost, PointValues pointValues, NumericDocValues docValues)
-
Uses of Weight in org.apache.lucene.index
Constructors in org.apache.lucene.index with parameters of type Weight Constructor Description DocumentFilteredLeafIndexReader(LeafReaderContext context, Weight preserveWeight, boolean negateFilter)
-
Uses of Weight in org.apache.lucene.monitor
Methods in org.apache.lucene.monitor that return Weight Modifier and Type Method Description Weight
ForceNoBulkScoringQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
-
Uses of Weight in org.apache.lucene.queries.function
Subclasses of Weight in org.apache.lucene.queries.function Modifier and Type Class Description protected class
FunctionQuery.FunctionWeight
private class
FunctionRangeQuery.FunctionRangeWeight
private static class
FunctionScoreQuery.FunctionScoreWeight
Fields in org.apache.lucene.queries.function declared as Weight Modifier and Type Field Description (package private) Weight
FunctionScoreQuery.FunctionScoreWeight. inner
Methods in org.apache.lucene.queries.function that return Weight Modifier and Type Method Description Weight
FunctionMatchQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
FunctionQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
FunctionRangeQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
FunctionScoreQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Methods in org.apache.lucene.queries.function with parameters of type Weight Modifier and Type Method Description ValueSourceScorer
FunctionValues. getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.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)
.ValueSourceScorer
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 Weight Constructor Description FunctionScoreWeight(Query query, Weight inner, DoubleValuesSource valueSource, float boost)
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 Weight Modifier and Type Method Description ValueSourceScorer
DocTermsIndexDocValues. getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)
ValueSourceScorer
DoubleDocValues. getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)
ValueSourceScorer
IntDocValues. getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)
ValueSourceScorer
LongDocValues. getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.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 Modifier and Type Field Description (package private) Weight
QueryDocValues. weight
-
Uses of Weight in org.apache.lucene.queries.intervals
Subclasses of Weight in org.apache.lucene.queries.intervals Modifier and Type Class Description private class
IntervalQuery.IntervalWeight
Methods in org.apache.lucene.queries.intervals that return Weight Modifier and Type Method Description Weight
IntervalQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Constructors in org.apache.lucene.queries.intervals with parameters of type Weight Constructor Description 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.payloads Modifier and Type Class Description private class
PayloadScoreQuery.PayloadSpanWeight
class
SpanPayloadCheckQuery.SpanPayloadCheckWeight
Weight that pulls its Spans using a PayloadSpanCollector -
Uses of Weight in org.apache.lucene.search
Subclasses of Weight in org.apache.lucene.search Modifier and Type Class Description (package private) class
BM25FQuery.BM25FWeight
(package private) class
BooleanWeight
Expert: the Weight for BooleanQuery, used to normalize, score and explain these queries.class
ConstantScoreWeight
A Weight that has a constant score equal to the boost of the wrapped query.private static class
CoveringQuery.CoveringWeight
protected class
DisjunctionMaxQuery.DisjunctionMaxWeight
Expert: the Weight for DisjunctionMaxQuery, used to normalize, score and explain these queries.class
FilterWeight
AFilterWeight
contains anotherWeight
and implements all abstract methods by calling the contained weight's method.private class
LRUQueryCache.CachingWrapperWeight
(package private) class
PhraseWeight
(package private) class
SynonymQuery.SynonymWeight
(package private) class
TermAutomatonQuery.TermAutomatonWeight
(package private) class
TermQuery.TermWeight
Fields in org.apache.lucene.search declared as Weight Modifier and Type Field Description protected Weight
FilterWeight. in
private Weight
LRUQueryCache.CachingWrapperWeight. in
private Weight
Boolean2ScorerSupplier. weight
(package private) Weight
BooleanWeight.WeightedBooleanClause. weight
(package private) Weight
ConstantScoreQuery.ConstantBulkScorer. weight
private Weight
DoubleValuesSource.WeightDoubleValuesSource. weight
(package private) Weight
MultiTermQueryConstantScoreWrapper.WeightOrDocIdSet. weight
protected Weight
Scorer. weight
the Scorer's parent Weight(package private) Weight
TermInSetQuery.WeightOrDocIdSet. weight
Fields in org.apache.lucene.search with type parameters of type Weight Modifier and Type Field Description private java.util.Collection<Weight>
CoveringQuery.CoveringWeight. weights
protected java.util.ArrayList<Weight>
DisjunctionMaxQuery.DisjunctionMaxWeight. weights
The Weights for our subqueries, in 1-1 correspondence with disjunctsMethods in org.apache.lucene.search that return Weight Modifier and Type Method Description Weight
BM25FQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
BooleanQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
BoostQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
ConstantScoreQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
CoveringQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
DisjunctionMaxQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Create the Weight used to score usWeight
DocValuesFieldExistsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
DocValuesNumbersQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
DocValuesRewriteMethod.MultiTermQueryDocValuesWrapper. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
DocValuesTermsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
IndexOrDocValuesQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
IndexSearcher. createWeight(Query query, ScoreMode scoreMode, float boost)
Creates aWeight
for the given query, potentially adding caching if possible and configured.Weight
IndexSortSortedNumericDocValuesRangeQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
MatchAllDocsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
MatchNoDocsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
MultiPhraseQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
MultiRangeQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
MultiTermQueryConstantScoreWrapper. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
NamedMatches.NamedQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
NormsFieldExistsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
PhraseQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
PhraseWildcardQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
PointInSetQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
PointRangeQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
Query. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Expert: Constructs an appropriate Weight implementation for this query.Weight
SynonymQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
TermAutomatonQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
TermInSetQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
TermQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
LRUQueryCache. doCache(Weight weight, QueryCachingPolicy policy)
Weight
QueryCache. doCache(Weight weight, QueryCachingPolicy policy)
Return a wrapper around the providedweight
that will cache matching docs per-segment accordingly to the givenpolicy
.protected Weight
PhraseWildcardQuery. earlyStopWeight()
Weight
Scorer. getWeight()
returns parent Weightprotected Weight
PhraseWildcardQuery. noMatchWeight()
Methods in org.apache.lucene.search with parameters of type Weight Modifier and Type Method Description Weight
LRUQueryCache. doCache(Weight weight, QueryCachingPolicy policy)
Weight
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
IndexSearcher. explain(Weight weight, int doc)
Expert: low-level implementation method Returns an Explanation that describes howdoc
scored againstweight
.protected void
IndexSearcher. search(java.util.List<LeafReaderContext> leaves, Weight weight, Collector collector)
Lower-level search API.Constructors in org.apache.lucene.search with parameters of type Weight Constructor Description BlockMaxConjunctionScorer(Weight weight, java.util.Collection<Scorer> scorersList)
Create a newBlockMaxConjunctionScorer
from scoring clauses.BM25FScorer(Weight weight, DisiPriorityQueue queue, DocIdSetIterator iterator, MultiNormsLeafSimScorer simScorer)
Boolean2ScorerSupplier(Weight weight, java.util.Map<BooleanClause.Occur,java.util.Collection<ScorerSupplier>> subs, ScoreMode scoreMode, int minShouldMatch)
CachingWrapperWeight(Weight in, QueryCachingPolicy policy)
ConjunctionScorer(Weight weight, java.util.Collection<Scorer> required, java.util.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
.CoveringScorer(Weight weight, java.util.Collection<Scorer> scorers, LongValues minMatchValues, int maxDoc)
DisjunctionMaxScorer(Weight weight, float tieBreakerMultiplier, java.util.List<Scorer> subScorers, ScoreMode scoreMode)
Creates a new instance of DisjunctionMaxScorerDisjunctionScorer(Weight weight, java.util.List<Scorer> subScorers, ScoreMode scoreMode)
DisjunctionSumScorer(Weight weight, java.util.List<Scorer> subScorers, ScoreMode scoreMode)
Construct aDisjunctionScorer
.FilterScorer(Scorer in, Weight weight)
Create a new FilterScorer with a specific weightFilterWeight(Query query, Weight weight)
Alternative constructor.FilterWeight(Weight weight)
Default constructor.MinShouldMatchSumScorer(Weight weight, java.util.Collection<Scorer> scorers, int minShouldMatch)
PhraseScorer(Weight weight, PhraseMatcher matcher, ScoreMode scoreMode, LeafSimScorer simScorer)
Scorer(Weight weight)
Constructs a ScorerSynonymScorer(Weight weight, DisiPriorityQueue queue, DocIdSetIterator iterator, ImpactsDISI impactsDisi, LeafSimScorer simScorer)
TermScorer(Weight weight, ImpactsEnum impactsEnum, LeafSimScorer docScorer)
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.WANDScorer(Weight weight, java.util.Collection<Scorer> scorers)
WeightDoubleValuesSource(Weight weight)
WeightedBooleanClause(BooleanClause clause, Weight weight)
WeightOrDocIdSet(Weight weight)
WeightOrDocIdSet(Weight weight)
Constructor parameters in org.apache.lucene.search with type arguments of type Weight Constructor Description CoveringWeight(Query query, java.util.Collection<Weight> weights, LongValuesSource minimumNumberMatch)
-
Uses of Weight in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as Weight Modifier and Type Field Description private Weight
BlockGroupingCollector. lastDocPerGroup
Constructors in org.apache.lucene.search.grouping with parameters of type Weight Constructor Description BlockGroupingCollector(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.join Modifier and Type Class Description (package private) class
GlobalOrdinalsQuery.W
(package private) class
GlobalOrdinalsWithScoreQuery.W
private static class
ToChildBlockJoinQuery.ToChildBlockJoinWeight
private static class
ToParentBlockJoinQuery.BlockJoinWeight
Fields in org.apache.lucene.search.join declared as Weight Modifier and Type Field Description private Weight
GlobalOrdinalsQuery.W. approximationWeight
Methods in org.apache.lucene.search.join that return Weight Modifier and Type Method Description Weight
GlobalOrdinalsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
GlobalOrdinalsWithScoreQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
ParentChildrenBlockJoinQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
PointInSetIncludingScoreQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
TermsIncludingScoreQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
ToChildBlockJoinQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
ToParentBlockJoinQuery. createWeight(IndexSearcher searcher, ScoreMode weightScoreMode, float boost)
Methods in org.apache.lucene.search.join with parameters of type Weight Modifier and Type Method Description Explanation
ToParentBlockJoinQuery.BlockJoinScorer. explain(LeafReaderContext context, Weight childWeight)
Constructors in org.apache.lucene.search.join with parameters of type Weight Constructor Description BaseGlobalOrdinalScorer(Weight weight, SortedDocValues values, DocIdSetIterator approximationScorer)
BlockJoinScorer(Weight weight, Scorer childScorer, BitSet parentBits, ScoreMode scoreMode)
BlockJoinWeight(Query joinQuery, Weight childWeight, BitSetProducer parentsFilter, ScoreMode scoreMode)
MVInOrderScorer(Weight weight, TermsEnum termsEnum, int maxDoc, long cost)
OrdinalMapScorer(Weight weight, float score, LongBitSet foundOrds, SortedDocValues values, DocIdSetIterator approximationScorer, LongValues segmentOrdToGlobalOrdLookup)
OrdinalMapScorer(Weight weight, GlobalOrdinalsWithScoreCollector collector, SortedDocValues values, DocIdSetIterator approximation, LongValues segmentOrdToGlobalOrdLookup)
SegmentOrdinalScorer(Weight weight, float score, LongBitSet foundOrds, SortedDocValues values, DocIdSetIterator approximationScorer)
SegmentOrdinalScorer(Weight weight, GlobalOrdinalsWithScoreCollector collector, SortedDocValues values, DocIdSetIterator approximation)
SVInOrderScorer(Weight weight, TermsEnum termsEnum, int maxDoc, long cost)
ToChildBlockJoinScorer(Weight weight, Scorer parentScorer, BitSet parentBits, boolean doScores)
ToChildBlockJoinWeight(Query joinQuery, Weight parentWeight, BitSetProducer parentsFilter, boolean doScores)
W(Query query, Weight approximationWeight, float boost)
W(Query query, Weight approximationWeight)
-
Uses of Weight in org.apache.lucene.search.spans
Subclasses of Weight in org.apache.lucene.search.spans Modifier and Type Class Description class
SpanContainingQuery.SpanContainingWeight
class
SpanContainQuery.SpanContainWeight
private class
SpanNearQuery.SpanGapQuery.SpanGapWeight
class
SpanNearQuery.SpanNearWeight
class
SpanNotQuery.SpanNotWeight
class
SpanOrQuery.SpanOrWeight
class
SpanPositionCheckQuery.SpanPositionCheckWeight
class
SpanTermQuery.SpanTermWeight
class
SpanWeight
Expert-only.class
SpanWithinQuery.SpanWithinWeight
-
Uses of Weight in org.apache.lucene.search.suggest.document
Subclasses of Weight in org.apache.lucene.search.suggest.document Modifier and Type Class Description class
CompletionWeight
Expert: the Weight for CompletionQuery, used to score and explain these queries.private static class
ContextQuery.ContextCompletionWeight
private static class
FuzzyCompletionQuery.FuzzyCompletionWeight
Methods in org.apache.lucene.search.suggest.document that return Weight Modifier and Type Method Description Weight
ContextQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
FuzzyCompletionQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
PrefixCompletionQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
Weight
RegexCompletionQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)
-