Uses of Class
org.apache.lucene.search.Weight
-
Packages that use Weight Package Description org.apache.lucene.search Code to search indices.org.apache.lucene.search.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.search.spans The calculus of spans. -
-
Uses of Weight in org.apache.lucene.search
Subclasses of Weight in org.apache.lucene.search Modifier and Type Class Description protected classBooleanQuery.BooleanWeightExpert: the Weight for BooleanQuery, used to normalize, score and explain these queries.protected classConstantScoreQuery.ConstantWeightprotected classDisjunctionMaxQuery.DisjunctionMaxWeightExpert: the Weight for DisjunctionMaxQuery, used to normalize, score and explain these queries.Fields in org.apache.lucene.search declared as Weight Modifier and Type Field Description protected WeightScorer. weightthe Scorer's parent Weight.Fields in org.apache.lucene.search with type parameters of type Weight Modifier and Type Field Description protected ArrayList<Weight>BooleanQuery.BooleanWeight. weightsprotected 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 WeightIndexSearcher. createNormalizedWeight(Query query)Creates a normalized weight for a top-levelQuery.WeightBooleanQuery. createWeight(IndexSearcher searcher)WeightConstantScoreQuery. createWeight(IndexSearcher searcher)WeightDisjunctionMaxQuery. createWeight(IndexSearcher searcher)Create the Weight used to score usWeightFilteredQuery. createWeight(IndexSearcher searcher)Returns a Weight that applies the filter to the enclosed query's Weight.WeightMatchAllDocsQuery. createWeight(IndexSearcher searcher)WeightMultiPhraseQuery. createWeight(IndexSearcher searcher)WeightPhraseQuery. createWeight(IndexSearcher searcher)WeightQuery. createWeight(IndexSearcher searcher)Expert: Constructs an appropriate Weight implementation for this query.WeightTermQuery. createWeight(IndexSearcher searcher)WeightScorer. getWeight()returns parent WeightMethods in org.apache.lucene.search with parameters of type Weight Modifier and Type Method Description protected ExplanationIndexSearcher. explain(Weight weight, int doc)Expert: low-level implementation method Returns an Explanation that describes howdocscored againstweight.abstract ScorerFilteredQuery.FilterStrategy. filteredScorer(AtomicReaderContext context, boolean scoreDocsInOrder, boolean topScorer, Weight weight, DocIdSet docIdSet)Returns a filteredScorerbased on this strategy.ScorerFilteredQuery.RandomAccessFilterStrategy. filteredScorer(AtomicReaderContext context, boolean scoreDocsInOrder, boolean topScorer, Weight weight, DocIdSet docIdSet)protected voidIndexSearcher. search(List<AtomicReaderContext> leaves, Weight weight, Collector collector)Lower-level search API.protected TopFieldDocsIndexSearcher. 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 returnedFieldDocinstances should be set by specifying fillFields.protected TopDocsIndexSearcher. search(List<AtomicReaderContext> leaves, Weight weight, ScoreDoc after, int nDocs)Expert: Low-level search implementation.protected TopFieldDocsIndexSearcher. search(Weight weight, int nDocs, Sort sort, boolean doDocScores, boolean doMaxScore)Expert: Low-level search implementation with arbitrary sorting and control over whether hit scores and max score should be computed.protected TopFieldDocsIndexSearcher. 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 returnedFieldDocinstances should be set by specifying fillFields.protected TopDocsIndexSearcher. search(Weight weight, ScoreDoc after, int nDocs)Expert: Low-level search implementation.Constructors in org.apache.lucene.search with parameters of type Weight Constructor Description ConstantScorer(DocIdSetIterator docIdSetIterator, Weight w, float theScore)Scorer(Weight weight)Constructs a Scorer -
Uses of Weight in org.apache.lucene.search.payloads
Subclasses of Weight in org.apache.lucene.search.payloads Modifier and Type Class Description classPayloadNearQuery.PayloadNearSpanWeightprotected classPayloadTermQuery.PayloadTermWeightMethods in org.apache.lucene.search.payloads that return Weight Modifier and Type Method Description WeightPayloadNearQuery. createWeight(IndexSearcher searcher)WeightPayloadTermQuery. createWeight(IndexSearcher searcher)Constructors in org.apache.lucene.search.payloads with parameters of type Weight Constructor Description 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.spans Modifier and Type Class Description classSpanWeightExpert-only.Methods in org.apache.lucene.search.spans that return Weight Modifier and Type Method Description WeightFieldMaskingSpanQuery. createWeight(IndexSearcher searcher)WeightSpanQuery. createWeight(IndexSearcher searcher)Constructors in org.apache.lucene.search.spans with parameters of type Weight Constructor Description SpanScorer(Spans spans, Weight weight, Similarity.SimScorer docScorer)
-