Uses of Class
org.apache.lucene.search.Weight
-
Packages that use Weight Package Description org.apache.lucene.document The logical representation of aDocumentfor indexing and searching.org.apache.lucene.search Code to search indices. -
-
Uses of Weight in org.apache.lucene.document
Methods in org.apache.lucene.document that return Weight Modifier and Type Method Description WeightRangeFieldQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightXYDocValuesPointInGeometryQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) -
Uses of Weight in org.apache.lucene.search
Subclasses of Weight in org.apache.lucene.search Modifier and Type Class Description classConstantScoreWeightA Weight that has a constant score equal to the boost of the wrapped query.protected classDisjunctionMaxQuery.DisjunctionMaxWeightExpert: the Weight for DisjunctionMaxQuery, used to normalize, score and explain these queries.classFilterWeightAFilterWeightcontains anotherWeightand implements all abstract methods by calling the contained weight's method.classIndriAndWeightThe Weight for IndriAndQuery, used to normalize, score and explain these queries.classPhraseWeightExpert: Weight class for phrase matchingFields in org.apache.lucene.search declared as Weight Modifier and Type Field Description protected WeightFilterWeight. inprotected WeightScorer. weightthe Scorer's parent WeightFields in org.apache.lucene.search with type parameters of type Weight Modifier and Type Field Description protected ArrayList<Weight>DisjunctionMaxQuery.DisjunctionMaxWeight. weightsThe Weights for our subqueries, in 1-1 correspondence with disjunctsMethods in org.apache.lucene.search that return Weight Modifier and Type Method Description WeightBooleanQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightBoostQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightConstantScoreQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightDisjunctionMaxQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)Create the Weight used to score usWeightFieldExistsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightIndexOrDocValuesQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightIndexSearcher. createWeight(Query query, ScoreMode scoreMode, float boost)Creates aWeightfor the given query, potentially adding caching if possible and configured.WeightIndexSortSortedNumericDocValuesRangeQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightIndriAndQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)abstract WeightIndriQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightMatchAllDocsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightMatchNoDocsQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightMultiPhraseQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightPhraseQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightPointInSetQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightPointRangeQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)Expert: Constructs an appropriate Weight implementation for this query.WeightSynonymQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightTermQuery. createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)WeightLRUQueryCache. doCache(Weight weight, QueryCachingPolicy policy)WeightQueryCache. doCache(Weight weight, QueryCachingPolicy policy)Return a wrapper around the providedweightthat will cache matching docs per-segment accordingly to the givenpolicy.WeightScorer. getWeight()returns parent WeightMethods in org.apache.lucene.search with parameters of type Weight Modifier and Type Method Description WeightLRUQueryCache. doCache(Weight weight, QueryCachingPolicy policy)WeightQueryCache. doCache(Weight weight, QueryCachingPolicy policy)Return a wrapper around the providedweightthat will cache matching docs per-segment accordingly to the givenpolicy.protected ExplanationIndexSearcher. explain(Weight weight, int doc)Expert: low-level implementation method Returns an Explanation that describes howdocscored againstweight.protected voidIndexSearcher. search(List<LeafReaderContext> leaves, Weight weight, Collector collector)Lower-level search API.protected voidIndexSearcher. searchLeaf(LeafReaderContext ctx, Weight weight, Collector collector)Lower-level search APIdefault voidCollector. setWeight(Weight weight)Set theWeightthat will be used to produce scorers that will feedLeafCollectors.voidFilterCollector. setWeight(Weight weight)voidMultiCollector. setWeight(Weight weight)voidTotalHitCountCollector. setWeight(Weight weight)Constructors in org.apache.lucene.search with parameters of type Weight Constructor Description 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.FilterScorer(Scorer in, Weight weight)Create a new FilterScorer with a specific weightFilterWeight(Query query, Weight weight)Alternative constructor.FilterWeight(Weight weight)Default constructor.IndriAndScorer(Weight weight, List<Scorer> subScorers, ScoreMode scoreMode, float boost)IndriDisjunctionScorer(Weight weight, List<Scorer> subScorersList, ScoreMode scoreMode, float boost)IndriScorer(Weight weight, float boost)Scorer(Weight weight)Constructs a ScorerTermScorer(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.
-