## Uses of Class
org.apache.lucene.search.Weight

Packages that use Weight
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
`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
`protected Weight` `MultiSearcher.createWeight(Query original)` Create weight in multiple index scenario.
`protected Weight` `Searcher.createWeight(Query query)` creates a weight for `query`
`Weight` `TermQuery.createWeight(Searcher searcher)`
`Weight` `MatchAllDocsQuery.createWeight(Searcher searcher)`
`Weight` `FilteredQuery.createWeight(Searcher searcher)` Returns a Weight that applies the filter to the enclosed query's Weight.
`Weight` `DisjunctionMaxQuery.createWeight(Searcher searcher)`
`Weight` `ConstantScoreQuery.createWeight(Searcher searcher)`
`Weight` `MultiPhraseQuery.createWeight(Searcher searcher)`
`Weight` `PhraseQuery.createWeight(Searcher searcher)`
`Weight` `BooleanQuery.createWeight(Searcher searcher)`
`Weight` `Query.createWeight(Searcher searcher)` Expert: Constructs an appropriate Weight implementation for this query.
`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
`Explanation` `RemoteSearchable.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`.
`abstract Explanation` `Searcher.explain(Weight weight, int doc)`
`void` `RemoteSearchable.search(Weight weight, Filter filter, Collector results)`
`void` `ParallelMultiSearcher.search(Weight weight, Filter filter, Collector collector)` Lower-level search API.
`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.
`abstract void` `Searcher.search(Weight weight, Filter filter, Collector results)`
`void` `RemoteSearchable.search(Weight weight, Filter filter, HitCollector results)` Deprecated. use `RemoteSearchable.search(Weight, Filter, Collector)` instead.
`void` `Searchable.search(Weight weight, Filter filter, HitCollector results)` Deprecated. use `Searchable.search(Weight, Filter, Collector)` instead.
`void` `Searcher.search(Weight weight, Filter filter, HitCollector results)` Deprecated. use `Searcher.search(Weight, Filter, Collector)` instead.
`TopDocs` `RemoteSearchable.search(Weight weight, Filter filter, int n)`
`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.
`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.
`abstract TopDocs` `Searcher.search(Weight weight, Filter filter, int n)`
`TopFieldDocs` `RemoteSearchable.search(Weight weight, Filter filter, int n, Sort sort)`
`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` `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.
`abstract TopFieldDocs` `Searcher.search(Weight weight, Filter filter, int n, Sort sort)`
`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
`ConstantScoreQuery.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
`Weight` `ValueSourceQuery.createWeight(Searcher searcher)`
`Weight` `CustomScoreQuery.createWeight(Searcher searcher)`

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

Subclasses of Weight in org.apache.lucene.search.payloads
`protected class` `BoostingTermQuery.BoostingTermWeight` Deprecated.
`class` `PayloadNearQuery.PayloadNearSpanWeight`
`protected class` `PayloadTermQuery.PayloadTermWeight`

Methods in org.apache.lucene.search.payloads that return Weight
`Weight` `PayloadNearQuery.createWeight(Searcher searcher)`
`Weight` `PayloadTermQuery.createWeight(Searcher searcher)`
`Weight` `BoostingTermQuery.createWeight(Searcher searcher)` Deprecated.

Constructors in org.apache.lucene.search.payloads with parameters of type Weight
`PayloadNearQuery.PayloadNearSpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms)`
`PayloadTermQuery.PayloadTermWeight.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
`class` `SpanWeight` Expert-only.

Fields in org.apache.lucene.search.spans declared as Weight
`protected Weight` `SpanScorer.weight`

Methods in org.apache.lucene.search.spans that return Weight
`Weight` `FieldMaskingSpanQuery.createWeight(Searcher searcher)`
`Weight` `SpanQuery.createWeight(Searcher searcher)`

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

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