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 maintain and access indices.
Code to search indices.
Classes related to vector search: knn and vector fields.
-
Uses of IndexSearcher in org.apache.lucene.document
Methods in org.apache.lucene.document with parameters of type IndexSearcherModifier and TypeMethodDescriptionfinal WeightRangeFieldQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) XYDocValuesPointInGeometryQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) static TopFieldDocsLatLonPoint.nearest(IndexSearcher searcher, String field, double latitude, double longitude, int n) Finds thennearest indexed points to the provided point, according to Haversine distance. -
Uses of IndexSearcher in org.apache.lucene.index
Methods in org.apache.lucene.index with parameters of type IndexSearcherModifier and TypeMethodDescriptionstatic TermStatesTermStates.build(IndexSearcher indexSearcher, Term term, boolean needsStats) -
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 IndexSearcherSearcherManager.getSearcher(SearcherFactory searcherFactory, IndexReader reader, IndexReader previousReader) Expert: creates a searcher from the providedIndexReaderusing the providedSearcherFactory.SearcherFactory.newSearcher(IndexReader reader, IndexReader previousReader) Returns a new IndexSearcher over the given reader.protected IndexSearcherSearcherManager.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) CombinedFieldQuery.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 usFieldExistsQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) IndexOrDocValuesQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) IndexSortSortedNumericDocValuesRangeQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) IndriAndQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) abstract WeightIndriQuery.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) PhraseQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) final WeightPointInSetQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) final WeightPointRangeQuery.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) TermQuery.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) protected voidSearcherManager.decRef(IndexSearcher reference) booleanSearcherLifetimeManager.PruneByAge.doPrune(double ageSec, IndexSearcher searcher) booleanSearcherLifetimeManager.Pruner.doPrune(double ageSec, IndexSearcher searcher) Return true if this searcher should be removed.QueryRescorer.explain(IndexSearcher searcher, Explanation firstPassExplanation, int docID) abstract ExplanationRescorer.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 KnnCollectorManagerPatienceKnnVectorQuery.getKnnCollectorManager(int k, IndexSearcher searcher) protected KnnCollectorManagerSeededKnnVectorQuery.getKnnCollectorManager(int k, IndexSearcher searcher) protected intSearcherManager.getRefCount(IndexSearcher reference) protected abstract Similarity.SimScorerPhraseWeight.getStats(IndexSearcher searcher) static voidTopFieldCollector.populateScores(ScoreDoc[] topDocs, IndexSearcher searcher, Query query) Populatescoresof the giventopDocs.longSearcherLifetimeManager.record(IndexSearcher searcher) Records that you are now using this IndexSearcher.protected IndexSearcherSearcherManager.refreshIfNeeded(IndexSearcher referenceToRefresh) voidSearcherLifetimeManager.release(IndexSearcher s) Release a searcher previously obtained fromSearcherLifetimeManager.acquire(long).QueryRescorer.rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN) static TopDocsQueryRescorer.rescore(IndexSearcher searcher, TopDocs topDocs, Query query, double weight, int topN) Sugar API, calling {#rescore} using a simple linear combination of firstPassScore + weight * secondPassScoreabstract TopDocsRescorer.rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN) Rescore an initial first-passTopDocs.SortRescorer.rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN) final QueryBlendedTermQuery.rewrite(IndexSearcher indexSearcher) BooleanQuery.rewrite(IndexSearcher indexSearcher) BoostQuery.rewrite(IndexSearcher indexSearcher) CombinedFieldQuery.rewrite(IndexSearcher indexSearcher) ConstantScoreQuery.rewrite(IndexSearcher indexSearcher) DisjunctionMaxQuery.rewrite(IndexSearcher indexSearcher) Optimize our representation and our subqueries representationsDocValuesRewriteMethod.rewrite(IndexSearcher indexSearcher, MultiTermQuery query) abstract DoubleValuesSourceDoubleValuesSource.rewrite(IndexSearcher reader) Return a DoubleValuesSource specialised for the given IndexSearcherFieldExistsQuery.rewrite(IndexSearcher indexSearcher) IndexOrDocValuesQuery.rewrite(IndexSearcher indexSearcher) IndexSortSortedNumericDocValuesRangeQuery.rewrite(IndexSearcher indexSearcher) LongValuesSource.ConstantLongValuesSource.rewrite(IndexSearcher searcher) abstract LongValuesSourceLongValuesSource.rewrite(IndexSearcher searcher) Return a LongValuesSource specialised for the given IndexSearcherMultiPhraseQuery.rewrite(IndexSearcher indexSearcher) final QueryMultiTermQuery.rewrite(IndexSearcher indexSearcher) To rewrite to a simpler form, instead return a simpler enum fromMultiTermQuery.getTermsEnum(Terms, AttributeSource).abstract QueryMultiTermQuery.RewriteMethod.rewrite(IndexSearcher indexSearcher, MultiTermQuery query) NGramPhraseQuery.rewrite(IndexSearcher indexSearcher) PhraseQuery.rewrite(IndexSearcher indexSearcher) Query.rewrite(IndexSearcher indexSearcher) Expert: called to re-write queries into primitive queries.final QueryScoringRewrite.rewrite(IndexSearcher indexSearcher, MultiTermQuery query) SeededKnnVectorQuery.rewrite(IndexSearcher indexSearcher) Sort.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.SynonymQuery.rewrite(IndexSearcher indexSearcher) final QueryTopTermsRewrite.rewrite(IndexSearcher indexSearcher, MultiTermQuery query) protected booleanSearcherManager.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) protectedPhraseWeight(Query query, String field, IndexSearcher searcher, ScoreMode scoreMode) Expert: Creates PhraseWeight instance -
Uses of IndexSearcher in org.apache.lucene.search.knn
Constructors in org.apache.lucene.search.knn with parameters of type IndexSearcher