## 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.function | Programmatic control over documents scores.
  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.

    Methods in org.apache.lucene.search that return Weight
    Modifier and Type | Method and Description
    --- | ---
    `protected Weight` | Searcher.`createWeight(Query query)` creates a weight for `query`
    `protected Weight` | MultiSearcher.`createWeight(Query original)` Create weight in multiple index scenario.
    `Weight` | MultiPhraseQuery.`createWeight(Searcher searcher)`
    `Weight` | TermQuery.`createWeight(Searcher searcher)`
    `Weight` | ConstantScoreQuery.`createWeight(Searcher searcher)`
    `Weight` | FilteredQuery.`createWeight(Searcher searcher)` Returns a Weight that applies the filter to the enclosed query's Weight.
    `Weight` | MatchAllDocsQuery.`createWeight(Searcher searcher)`
    `Weight` | DisjunctionMaxQuery.`createWeight(Searcher searcher)`
    `Weight` | BooleanQuery.`createWeight(Searcher searcher)`
    `Weight` | Query.`createWeight(Searcher searcher)` Expert: Constructs an appropriate Weight implementation for this query.
    `Weight` | PhraseQuery.`createWeight(Searcher searcher)`
    `Weight` | Query.`weight(Searcher searcher)` Expert: Constructs and initializes a Weight for a top-level query.

    Methods in org.apache.lucene.search with parameters of type Weight
    Modifier and Type | Method and Description
    --- | ---
    `Explanation` | RemoteSearchable.`explain(Weight weight, int doc)`
    `abstract Explanation` | Searcher.`explain(Weight weight, int doc)`
    `Explanation` | MultiSearcher.`explain(Weight weight, int doc)`
    `Explanation` | IndexSearcher.`explain(Weight weight, int doc)`
    `Explanation` | Searchable.`explain(Weight weight, int doc)` Expert: low-level implementation method Returns an Explanation that describes how `doc` scored against `weight`.
    `void` | RemoteSearchable.`search(Weight weight, Filter filter, Collector results)`
    `abstract void` | Searcher.`search(Weight weight, Filter filter, Collector results)`
    `void` | MultiSearcher.`search(Weight weight, Filter filter, Collector collector)`
    `void` | IndexSearcher.`search(Weight weight, Filter filter, Collector collector)`
    `void` | Searchable.`search(Weight weight, Filter filter, Collector collector)` Lower-level search API.
    `void` | ParallelMultiSearcher.`search(Weight weight, Filter filter, Collector collector)` Lower-level search API.
    `void` | RemoteSearchable.`search(Weight weight, Filter filter, HitCollector results)` Deprecated. use `RemoteSearchable.search(Weight, Filter, Collector)` instead.
    `void` | Searcher.`search(Weight weight, Filter filter, HitCollector results)` Deprecated. use `Searcher.search(Weight, Filter, Collector)` instead.
    `void` | Searchable.`search(Weight weight, Filter filter, HitCollector results)` Deprecated. use `Searchable.search(Weight, Filter, Collector)` instead.
    `TopDocs` | RemoteSearchable.`search(Weight weight, Filter filter, int n)`
    `abstract TopDocs` | Searcher.`search(Weight weight, Filter filter, int n)`
    `TopDocs` | MultiSearcher.`search(Weight weight, Filter filter, int nDocs)`
    `TopDocs` | IndexSearcher.`search(Weight weight, Filter filter, int nDocs)`
    `TopDocs` | Searchable.`search(Weight weight, Filter filter, int n)` Expert: Low-level search implementation.
    `TopDocs` | ParallelMultiSearcher.`search(Weight weight, Filter filter, int nDocs)` A search implementation which spans a new thread for each Searchable, waits for each search to complete and merge the results back together.
    `TopFieldDocs` | RemoteSearchable.`search(Weight weight, Filter filter, int n, Sort sort)`
    `abstract TopFieldDocs` | Searcher.`search(Weight weight, Filter filter, int n, Sort sort)`
    `TopFieldDocs` | MultiSearcher.`search(Weight weight, Filter filter, int n, Sort sort)`
    `TopFieldDocs` | IndexSearcher.`search(Weight weight, Filter filter, int nDocs, Sort sort)`
    `TopFieldDocs` | Searchable.`search(Weight weight, Filter filter, int n, Sort sort)` Expert: Low-level search implementation with arbitrary sorting.
    `TopFieldDocs` | ParallelMultiSearcher.`search(Weight weight, Filter filter, int nDocs, Sort sort)` A search implementation allowing sorting which spans a new thread for each Searchable, waits for each search to complete and merges the results back together.
    `TopFieldDocs` | IndexSearcher.`search(Weight weight, Filter filter, int nDocs, Sort sort, boolean fillFields)` Just like `IndexSearcher.search(Weight, Filter, int, Sort)`, but you choose whether or not the fields in the returned `FieldDoc` instances should be set by specifying fillFields.

    Constructors in org.apache.lucene.search with parameters of type Weight
    Constructor and Description
    `ConstantScorer(Similarity similarity, IndexReader reader, Weight w)`

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

    Methods in org.apache.lucene.search.function that return Weight
    Modifier and Type | Method and Description
    --- | ---
    `Weight` | CustomScoreQuery.`createWeight(Searcher searcher)`
    `Weight` | ValueSourceQuery.`createWeight(Searcher searcher)`

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

    Subclasses of Weight in org.apache.lucene.search.payloads
    Modifier and Type | Class and Description
    --- | ---
    `protected class` | `BoostingTermQuery.BoostingTermWeight` Deprecated.
    `class` | `PayloadNearQuery.PayloadNearSpanWeight`
    `protected class` | `PayloadTermQuery.PayloadTermWeight`

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

    Constructors in org.apache.lucene.search.payloads with parameters of type Weight
    Constructor and Description
    `PayloadNearSpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms)`
    `PayloadTermSpanScorer(TermSpans spans, Weight weight, Similarity similarity, byte[] norms)`

  - ### 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.

    Fields in org.apache.lucene.search.spans declared as Weight
    Modifier and Type | Field and Description
    --- | ---
    `protected Weight` | SpanScorer.`weight`

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

    Constructors in org.apache.lucene.search.spans with parameters of type Weight
    Constructor and Description
    `SpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms)`

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