Uses of Class
org.apache.lucene.search.Weight
Packages that use Weight
Package
Description
The logical representation of a
Document for indexing and
searching.Code to search indices.
-
Uses of Weight in org.apache.lucene.document
Methods in org.apache.lucene.document that return WeightModifier and TypeMethodDescriptionfinal WeightRangeFieldQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) XYDocValuesPointInGeometryQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) -
Uses of Weight in org.apache.lucene.search
Subclasses of Weight in org.apache.lucene.searchModifier and TypeClassDescriptionclassA 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.classExpert: Weight class for phrase matchingFields in org.apache.lucene.search declared as 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 disjunctsMethods in org.apache.lucene.search that return WeightModifier and TypeMethodDescriptionBooleanQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) BoostQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) CombinedFieldQuery.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 usFieldExistsQuery.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) 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.protected voidIndexSearcher.search(IndexSearcher.LeafReaderContextPartition[] partitions, Weight weight, Collector collector) Lower-level search API.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.voidvoidvoidConstructors in org.apache.lucene.search with parameters of type WeightModifierConstructorDescriptionConstantBulkScorer(BulkScorer bulkScorer, Weight weight, float theScore) protectedFilterWeight(Query query, Weight weight) Alternative constructor.protectedFilterWeight(Weight weight) Default constructor.