Uses of Class
org.apache.lucene.search.IndexSearcher
Packages that use IndexSearcher
Package
Description
The logical representation of a
Document
for indexing and
searching.Code to search indices.
-
Uses of IndexSearcher in org.apache.lucene.document
Methods in org.apache.lucene.document with parameters of type IndexSearcherModifier and TypeMethodDescriptionfinal Weight
RangeFieldQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) XYDocValuesPointInGeometryQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) -
Uses of IndexSearcher in org.apache.lucene.search
Methods in org.apache.lucene.search that return IndexSearcherModifier and TypeMethodDescriptionSearcherLifetimeManager.acquire
(long version) Retrieve a previously recordedIndexSearcher
, if it has not yet been closedstatic IndexSearcher
SearcherManager.getSearcher
(SearcherFactory searcherFactory, IndexReader reader, IndexReader previousReader) Expert: creates a searcher from the providedIndexReader
using the providedSearcherFactory
.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 IndexSearcherModifier and TypeMethodDescriptionBooleanQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) BoostQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) ConstantScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) DisjunctionMaxQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Create the Weight used to score usDocValuesFieldExistsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) IndexOrDocValuesQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) IndriAndQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) abstract Weight
IndriQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) KnnVectorFieldExistsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) MatchAllDocsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) MatchNoDocsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) MultiPhraseQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) NormsFieldExistsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) PhraseQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) final Weight
PointInSetQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) final Weight
PointRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Query.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Expert: Constructs an appropriate Weight implementation for this query.SynonymQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) TermInSetQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) TermQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) protected void
SearcherManager.decRef
(IndexSearcher reference) boolean
SearcherLifetimeManager.PruneByAge.doPrune
(double ageSec, IndexSearcher searcher) boolean
SearcherLifetimeManager.Pruner.doPrune
(double ageSec, IndexSearcher searcher) Return true if this searcher should be removed.QueryRescorer.explain
(IndexSearcher searcher, Explanation firstPassExplanation, int docID) abstract Explanation
Rescorer.explain
(IndexSearcher searcher, Explanation firstPassExplanation, int docID) Explains how the score for the specified document was computed.SortRescorer.explain
(IndexSearcher searcher, Explanation firstPassExplanation, int docID) protected int
SearcherManager.getRefCount
(IndexSearcher reference) protected abstract Similarity.SimScorer
PhraseWeight.getStats
(IndexSearcher searcher) static void
TopFieldCollector.populateScores
(ScoreDoc[] topDocs, IndexSearcher searcher, Query query) Populatescores
of the giventopDocs
.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 fromSearcherLifetimeManager.acquire(long)
.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 * secondPassScoreabstract TopDocs
Rescorer.rescore
(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN) Rescore an initial first-passTopDocs
.SortRescorer.rescore
(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN) abstract DoubleValuesSource
DoubleValuesSource.rewrite
(IndexSearcher reader) Return a DoubleValuesSource specialised for the given IndexSearcherLongValuesSource.ConstantLongValuesSource.rewrite
(IndexSearcher searcher) abstract LongValuesSource
LongValuesSource.rewrite
(IndexSearcher searcher) Return a LongValuesSource specialised for the given IndexSearcherSort.rewrite
(IndexSearcher searcher) Rewrites the SortFields in this Sort, returning a new Sort if any of the fields changes during their rewriting.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 IndexSearcherModifierConstructorDescriptionDisjunctionMaxWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Construct the Weight for this Query searched by searcher.IndriAndWeight
(IndriAndQuery query, IndexSearcher searcher, ScoreMode scoreMode, float boost) protected
PhraseWeight
(Query query, String field, IndexSearcher searcher, ScoreMode scoreMode) Expert: Creates PhraseWeight instance