## 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 and Description
    --- | ---
    `protected class` | `BooleanQuery.BooleanWeight` Expert: the Weight for BooleanQuery, used to normalize, score and explain these queries.
    `protected class` | `ConstantScoreQuery.ConstantWeight`
    `protected class` | `DisjunctionMaxQuery.DisjunctionMaxWeight` Expert: 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 and Description
    --- | ---
    `protected Weight` | Scorer.`weight` the Scorer's parent Weight.

    Fields in org.apache.lucene.search with type parameters of type Weight
    Modifier and Type | Field and Description
    --- | ---
    `protected ArrayList<Weight>` | DisjunctionMaxQuery.DisjunctionMaxWeight.`weights` The Weights for our subqueries, in 1-1 correspondence with disjuncts
    `protected ArrayList<Weight>` | BooleanQuery.BooleanWeight.`weights`

    Methods in org.apache.lucene.search that return Weight
    Modifier and Type | Method and Description
    --- | ---
    `Weight` | IndexSearcher.`createNormalizedWeight(Query query)` Creates a normalized weight for a top-level `Query`.
    `Weight` | TermQuery.`createWeight(IndexSearcher searcher)`
    `Weight` | Query.`createWeight(IndexSearcher searcher)` Expert: Constructs an appropriate Weight implementation for this query.
    `Weight` | PhraseQuery.`createWeight(IndexSearcher searcher)`
    `Weight` | MultiPhraseQuery.`createWeight(IndexSearcher searcher)`
    `Weight` | MatchAllDocsQuery.`createWeight(IndexSearcher searcher)`
    `Weight` | FilteredQuery.`createWeight(IndexSearcher searcher)` Returns a Weight that applies the filter to the enclosed query's Weight.
    `Weight` | DisjunctionMaxQuery.`createWeight(IndexSearcher searcher)` Create the Weight used to score us
    `Weight` | ConstantScoreQuery.`createWeight(IndexSearcher searcher)`
    `Weight` | BooleanQuery.`createWeight(IndexSearcher searcher)`
    `Weight` | Scorer.`getWeight()` returns parent Weight

    Methods in org.apache.lucene.search with parameters of type Weight
    Modifier and Type | Method and Description
    --- | ---
    `protected Explanation` | IndexSearcher.`explain(Weight weight, int doc)` Expert: low-level implementation method Returns an Explanation that describes how `doc` scored against `weight`.
    `abstract Scorer` | FilteredQuery.FilterStrategy.`filteredScorer(AtomicReaderContext context, boolean scoreDocsInOrder, boolean topScorer, Weight weight, DocIdSet docIdSet)` Returns a filtered `Scorer` based on this strategy.
    `Scorer` | 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 like `IndexSearcher.search(Weight, int, Sort, boolean, boolean)`, but you choose whether or not the fields in the returned `FieldDoc` 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` | IndexSearcher.`search(Weight weight, FieldDoc after, int nDocs, Sort sort, boolean fillFields, boolean doDocScores, boolean doMaxScore)` Just like `IndexSearcher.search(Weight, int, Sort, boolean, boolean)`, but you choose whether or not the fields in the returned `FieldDoc` instances should be set by specifying fillFields.
    `protected TopFieldDocs` | IndexSearcher.`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 TopDocs` | IndexSearcher.`search(Weight weight, ScoreDoc after, int nDocs)` Expert: Low-level search implementation.

    Constructors in org.apache.lucene.search with parameters of type Weight
    Constructor and Description
    `ConstantScoreQuery.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 and Description
    --- | ---
    `class` | `PayloadNearQuery.PayloadNearSpanWeight`
    `protected class` | `PayloadTermQuery.PayloadTermWeight`

    Methods in org.apache.lucene.search.payloads that return Weight
    Modifier and Type | Method and Description
    --- | ---
    `Weight` | PayloadTermQuery.`createWeight(IndexSearcher searcher)`
    `Weight` | PayloadNearQuery.`createWeight(IndexSearcher searcher)`

    Constructors in org.apache.lucene.search.payloads with parameters of type Weight
    Constructor and Description
    `PayloadNearQuery.PayloadNearSpanScorer(Spans spans, Weight weight, Similarity similarity, Similarity.SloppySimScorer docScorer)`
    `PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer(TermSpans spans, Weight weight, Similarity.SloppySimScorer docScorer)`

  - ### Uses of Weight in org.apache.lucene.search.spans

    Subclasses of Weight in org.apache.lucene.search.spans
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SpanWeight` Expert-only.

    Methods in org.apache.lucene.search.spans that return Weight
    Modifier and Type | Method and Description
    --- | ---
    `Weight` | SpanQuery.`createWeight(IndexSearcher searcher)`
    `Weight` | FieldMaskingSpanQuery.`createWeight(IndexSearcher searcher)`

    Constructors in org.apache.lucene.search.spans with parameters of type Weight
    Constructor and Description
    `SpanScorer(Spans spans, Weight weight, Similarity.SloppySimScorer docScorer)`

Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.