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

- Packages that use IndexSearcher
  Package | Description
  --- | ---
  org.apache.lucene.search | Code to search indices.
  org.apache.lucene.search.spans | The calculus of spans.

- - ### Uses of IndexSearcher in org.apache.lucene.search

    Methods in org.apache.lucene.search that return IndexSearcher
    Modifier and Type | Method and Description
    --- | ---
    `IndexSearcher` | SearcherLifetimeManager.`acquire(long version)` Retrieve a previously recorded `IndexSearcher`, if it has not yet been closed
    `static IndexSearcher` | SearcherManager.`getSearcher(SearcherFactory searcherFactory, IndexReader reader, IndexReader previousReader)` Expert: creates a searcher from the provided `IndexReader` using the provided `SearcherFactory`.
    `IndexSearcher` | SearcherFactory.`newSearcher(IndexReader reader, IndexReader previousReader)` Returns a new IndexSearcher over the given reader.
    `protected IndexSearcher` | SearcherManager.`refreshIfNeeded(IndexSearcher referenceToRefresh)`

    Methods in org.apache.lucene.search with parameters of type IndexSearcher
    Modifier and Type | Method and Description
    --- | ---
    `Weight` | MatchNoDocsQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | TermInSetQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | MultiPhraseQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | FieldValueQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | PhraseQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | BooleanQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | TermQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | DisjunctionMaxQuery.`createWeight(IndexSearcher searcher, boolean needsScores)` Create the Weight used to score us
    `Weight` | Query.`createWeight(IndexSearcher searcher, boolean needsScores)` Expert: Constructs an appropriate Weight implementation for this query.
    `Weight` | IndexOrDocValuesQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | SynonymQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | MatchAllDocsQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | BoostQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | PointRangeQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | ConstantScoreQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `Weight` | PointInSetQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `protected void` | SearcherManager.`decRef(IndexSearcher reference)`
    `boolean` | SearcherLifetimeManager.Pruner.`doPrune(double ageSec, IndexSearcher searcher)` Return true if this searcher should be removed.
    `boolean` | SearcherLifetimeManager.PruneByAge.`doPrune(double ageSec, IndexSearcher searcher)`
    `abstract Explanation` | Rescorer.`explain(IndexSearcher searcher, Explanation firstPassExplanation, int docID)` Explains how the score for the specified document was computed.
    `Explanation` | SortRescorer.`explain(IndexSearcher searcher, Explanation firstPassExplanation, int docID)`
    `Explanation` | QueryRescorer.`explain(IndexSearcher searcher, Explanation firstPassExplanation, int docID)`
    `protected int` | SearcherManager.`getRefCount(IndexSearcher reference)`
    `long` | SearcherLifetimeManager.`record(IndexSearcher searcher)` Records that you are now using this IndexSearcher.
    `protected IndexSearcher` | SearcherManager.`refreshIfNeeded(IndexSearcher referenceToRefresh)`
    `void` | SearcherLifetimeManager.`release(IndexSearcher s)` Release a searcher previously obtained from `SearcherLifetimeManager.acquire(long)`.
    `abstract TopDocs` | Rescorer.`rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)` Rescore an initial first-pass `TopDocs`.
    `TopDocs` | SortRescorer.`rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)`
    `TopDocs` | QueryRescorer.`rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)`
    `static TopDocs` | QueryRescorer.`rescore(IndexSearcher searcher, TopDocs topDocs, Query query, double weight, int topN)` Sugar API, calling {#rescore} using a simple linear combination of firstPassScore + weight * secondPassScore
    `Sort` | Sort.`rewrite(IndexSearcher searcher)` Rewrites the SortFields in this Sort, returning a new Sort if any of the fields changes during their rewriting.
    `SortField` | SortField.`rewrite(IndexSearcher searcher)` Rewrites this SortField, returning a new SortField if a change is made.
    `protected boolean` | SearcherManager.`tryIncRef(IndexSearcher reference)`

    Constructors in org.apache.lucene.search with parameters of type IndexSearcher
    Constructor and Description
    `DisjunctionMaxWeight(IndexSearcher searcher, boolean needsScores)` Construct the Weight for this Query searched by searcher.

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

    Methods in org.apache.lucene.search.spans with parameters of type IndexSearcher
    Modifier and Type | Method and Description
    --- | ---
    `abstract SpanWeight` | SpanQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `SpanWeight` | SpanContainingQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `SpanWeight` | FieldMaskingSpanQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `SpanWeight` | SpanWithinQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `SpanWeight` | SpanPositionCheckQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `SpanWeight` | SpanNotQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `SpanWeight` | SpanNearQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `SpanWeight` | SpanTermQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `SpanWeight` | SpanOrQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `SpanWeight` | SpanMultiTermQueryWrapper.`createWeight(IndexSearcher searcher, boolean needsScores)`
    `SpanWeight` | SpanBoostQuery.`createWeight(IndexSearcher searcher, boolean needsScores)`

    Constructors in org.apache.lucene.search.spans with parameters of type IndexSearcher
    Constructor and Description
    `SpanContainingWeight(IndexSearcher searcher, Map<Term,TermContext> terms, SpanWeight bigWeight, SpanWeight littleWeight)`
    `SpanNearWeight(List<SpanWeight> subWeights, IndexSearcher searcher, Map<Term,TermContext> terms)`
    `SpanNotWeight(IndexSearcher searcher, Map<Term,TermContext> terms, SpanWeight includeWeight, SpanWeight excludeWeight)`
    `SpanOrWeight(IndexSearcher searcher, Map<Term,TermContext> terms, List<SpanWeight> subWeights)`
    `SpanPositionCheckWeight(SpanWeight matchWeight, IndexSearcher searcher, Map<Term,TermContext> terms)`
    `SpanTermWeight(TermContext termContext, IndexSearcher searcher, Map<Term,TermContext> terms)`
    `SpanWeight(SpanQuery query, IndexSearcher searcher, Map<Term,TermContext> termContexts)` Create a new SpanWeight
    `SpanWithinWeight(IndexSearcher searcher, Map<Term,TermContext> terms, SpanWeight bigWeight, SpanWeight littleWeight)`

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