Uses of Class
org.apache.lucene.search.Weight
Packages that use Weight
Package
Description
Code to search indices.
The payloads package provides Query mechanisms for finding and using payloads.
The calculus of spans.
-
Uses of Weight in org.apache.lucene.search
Subclasses of Weight in org.apache.lucene.searchModifier and TypeClassDescriptionprotected class
Expert: the Weight for BooleanQuery, used to normalize, score and explain these queries.protected class
protected class
Expert: the Weight for DisjunctionMaxQuery, used to normalize, score and explain these queries.Fields in org.apache.lucene.search declared as WeightModifier and TypeFieldDescriptionprotected final Weight
Scorer.weight
the Scorer's parent Weight.Fields in org.apache.lucene.search with type parameters of type WeightModifier and TypeFieldDescriptionBooleanQuery.BooleanWeight.weights
DisjunctionMaxQuery.DisjunctionMaxWeight.weights
The Weights for our subqueries, in 1-1 correspondence with disjunctsMethods in org.apache.lucene.search that return WeightModifier and TypeMethodDescriptionIndexSearcher.createNormalizedWeight
(Query query) Creates a normalized weight for a top-levelQuery
.BooleanQuery.createWeight
(IndexSearcher searcher) ConstantScoreQuery.createWeight
(IndexSearcher searcher) DisjunctionMaxQuery.createWeight
(IndexSearcher searcher) Create the Weight used to score usFilteredQuery.createWeight
(IndexSearcher searcher) Returns a Weight that applies the filter to the enclosed query's Weight.MatchAllDocsQuery.createWeight
(IndexSearcher searcher) MultiPhraseQuery.createWeight
(IndexSearcher searcher) PhraseQuery.createWeight
(IndexSearcher searcher) Query.createWeight
(IndexSearcher searcher) Expert: Constructs an appropriate Weight implementation for this query.TermQuery.createWeight
(IndexSearcher searcher) Scorer.getWeight()
returns parent WeightMethods in org.apache.lucene.search with parameters of type WeightModifier and TypeMethodDescriptionprotected Explanation
Expert: low-level implementation method Returns an Explanation that describes howdoc
scored againstweight
.abstract Scorer
FilteredQuery.FilterStrategy.filteredScorer
(AtomicReaderContext context, boolean scoreDocsInOrder, boolean topScorer, Weight weight, DocIdSet docIdSet) Returns a filteredScorer
based on this strategy.FilteredQuery.RandomAccessFilterStrategy.filteredScorer
(AtomicReaderContext context, boolean scoreDocsInOrder, boolean topScorer, Weight weight, DocIdSet docIdSet) protected void
IndexSearcher.search
(List<AtomicReaderContext> leaves, Weight weight, Collector collector) Lower-level search API.protected TopFieldDocs
IndexSearcher.search
(List<AtomicReaderContext> leaves, Weight weight, FieldDoc after, int nDocs, Sort sort, boolean fillFields, boolean doDocScores, boolean doMaxScore) Just likeIndexSearcher.search(Weight, int, Sort, boolean, boolean)
, but you choose whether or not the fields in the returnedFieldDoc
instances should be set by specifying fillFields.protected TopDocs
IndexSearcher.search
(List<AtomicReaderContext> leaves, Weight weight, ScoreDoc after, int nDocs) Expert: Low-level search implementation.protected TopFieldDocs
Expert: Low-level search implementation with arbitrary sorting and control over whether hit scores and max score should be computed.protected TopFieldDocs
IndexSearcher.search
(Weight weight, FieldDoc after, int nDocs, Sort sort, boolean fillFields, boolean doDocScores, boolean doMaxScore) Just likeIndexSearcher.search(Weight, int, Sort, boolean, boolean)
, but you choose whether or not the fields in the returnedFieldDoc
instances should be set by specifying fillFields.protected TopDocs
Expert: Low-level search implementation.Constructors in org.apache.lucene.search with parameters of type WeightModifierConstructorDescriptionConstantScorer
(DocIdSetIterator docIdSetIterator, Weight w, float theScore) protected
Constructs a Scorer -
Uses of Weight in org.apache.lucene.search.payloads
Subclasses of Weight in org.apache.lucene.search.payloadsModifier and TypeClassDescriptionclass
protected class
Methods in org.apache.lucene.search.payloads that return WeightModifier and TypeMethodDescriptionPayloadNearQuery.createWeight
(IndexSearcher searcher) PayloadTermQuery.createWeight
(IndexSearcher searcher) Constructors in org.apache.lucene.search.payloads with parameters of type WeightModifierConstructorDescriptionprotected
PayloadNearSpanScorer
(Spans spans, Weight weight, Similarity similarity, Similarity.SimScorer docScorer) PayloadTermSpanScorer
(TermSpans spans, Weight weight, Similarity.SimScorer docScorer) -
Uses of Weight in org.apache.lucene.search.spans
Subclasses of Weight in org.apache.lucene.search.spansMethods in org.apache.lucene.search.spans that return WeightModifier and TypeMethodDescriptionFieldMaskingSpanQuery.createWeight
(IndexSearcher searcher) SpanQuery.createWeight
(IndexSearcher searcher) Constructors in org.apache.lucene.search.spans with parameters of type WeightModifierConstructorDescriptionprotected
SpanScorer
(Spans spans, Weight weight, Similarity.SimScorer docScorer)