Uses of Class
org.apache.lucene.search.IndexSearcher
Packages that use IndexSearcher
Package
Description
Uses already seen data (the indexed documents) to classify an input ( can be simple text or a
structured document).
The logical representation of a
Document
for indexing and
searching.Expressions.
High-performance single-document main memory Apache Lucene fulltext search index.
Monitoring framework
Queries that compute score based upon a function.
A variety of functions to use with FunctionQuery.
Intervals queries
The payloads package provides Query mechanisms for finding and using payloads.
The calculus of spans.
This package contains several point types:
BigIntegerPoint
for 128-bit
integers
LatLonPoint
for latitude/longitude
geospatial points
This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial
queries.
Code to search indices.
Grouping.
Highlighting search terms.
Support for index-time and query-time joins.
This package contains several components useful to build a highlighter on top of the
Matches
API.Suggest alternate spellings for words.
Analyzer based autosuggest.
Support for document suggestion
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term
vectors, or analysis.
Lucene field & query support for the spatial geometry implemented in
org.apache.lucene.spatial3d.geom
.-
Uses of IndexSearcher in org.apache.lucene.classification
Fields in org.apache.lucene.classification declared as IndexSearcherModifier and TypeFieldDescriptionprivate final IndexSearcher
BM25NBClassifier.indexSearcher
IndexSearcher
to run searches on the index for retrieving frequenciesprivate final IndexSearcher
KNearestFuzzyClassifier.indexSearcher
anIndexSearcher
used to perform queriesprotected final IndexSearcher
KNearestNeighborClassifier.indexSearcher
anIndexSearcher
used to perform queriesprotected final IndexSearcher
SimpleNaiveBayesClassifier.indexSearcher
IndexSearcher
to run searches on the index for retrieving frequencies -
Uses of IndexSearcher in org.apache.lucene.document
Methods in org.apache.lucene.document with parameters of type IndexSearcherModifier and TypeMethodDescriptionBinaryRangeFieldRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FeatureQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) LatLonDocValuesBoxQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) LatLonDocValuesQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) LatLonPointDistanceFeatureQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) LatLonPointDistanceQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) LongDistanceFeatureQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) final Weight
RangeFieldQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SortedNumericDocValuesRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SortedNumericDocValuesSetQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SortedSetDocValuesRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) final Weight
SpatialQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) XYDocValuesPointInGeometryQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) XYPointInGeometryQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FeatureDoubleValuesSource.rewrite
(IndexSearcher reader) -
Uses of IndexSearcher in org.apache.lucene.expressions
Methods in org.apache.lucene.expressions with parameters of type IndexSearcherModifier and TypeMethodDescriptionExpressionRescorer.explain
(IndexSearcher searcher, Explanation firstPassExplanation, int docID) ExpressionValueSource.rewrite
(IndexSearcher searcher) -
Uses of IndexSearcher in org.apache.lucene.index.memory
Methods in org.apache.lucene.index.memory that return IndexSearcherModifier and TypeMethodDescriptionMemoryIndex.createSearcher()
Creates and returns a searcher that can be used to execute arbitrary Lucene queries and to collect the resulting query results as hits. -
Uses of IndexSearcher in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as IndexSearcherModifier and TypeFieldDescriptionprotected final IndexSearcher
CandidateMatcher.searcher
The searcher to run candidate queries againstMethods in org.apache.lucene.monitor that return IndexSearcherModifier and TypeMethodDescriptionTermsHashBuilder.newSearcher
(IndexReader reader, IndexReader previousReader) Methods in org.apache.lucene.monitor with parameters of type IndexSearcherModifier and TypeMethodDescriptionMatcherFactory.createMatcher
(IndexSearcher searcher) Create a newCandidateMatcher
object, to select queries to match against the passed-in IndexSearcherParallelMatcher.ParallelMatcherFactory.createMatcher
(IndexSearcher searcher) PartitionMatcher.PartitionMatcherFactory.createMatcher
(IndexSearcher searcher) ForceNoBulkScoringQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Constructors in org.apache.lucene.monitor with parameters of type IndexSearcherModifierConstructorDescriptionCandidateMatcher
(IndexSearcher searcher) Creates a new CandidateMatcher for the supplied DocumentBatch(package private)
CollectingMatcher
(IndexSearcher searcher, ScoreMode scoreMode) private
ParallelMatcher
(IndexSearcher searcher, ExecutorService executor, MatcherFactory<T> matcherFactory, int threads) Create a new ParallelMatcherprivate
PartitionMatcher
(IndexSearcher searcher, ExecutorService executor, MatcherFactory<T> matcherFactory, int threads) -
Uses of IndexSearcher in org.apache.lucene.queries.function
Fields in org.apache.lucene.queries.function declared as IndexSearcherModifier and TypeFieldDescriptionprotected final IndexSearcher
FunctionQuery.FunctionWeight.searcher
(package private) final IndexSearcher
ValueSource.WrappedDoubleValuesSource.searcher
private final IndexSearcher
ValueSource.WrappedLongValuesSource.searcher
Methods in org.apache.lucene.queries.function with parameters of type IndexSearcherModifier and TypeMethodDescriptionFunctionMatchQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FunctionQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FunctionRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FunctionScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) void
ValueSource.createWeight
(Map<Object, Object> context, IndexSearcher searcher) Implementations should propagate createWeight to sub-ValueSources which can optionally store weight info in the context.ValueSource.newContext
(IndexSearcher searcher) Returns a new non-threadsafe context map.FunctionScoreQuery.MultiplicativeBoostValuesSource.rewrite
(IndexSearcher reader) FunctionScoreQuery.QueryBoostValuesSource.rewrite
(IndexSearcher reader) IndexReaderFunctions.IndexReaderDoubleValuesSource.rewrite
(IndexSearcher searcher) IndexReaderFunctions.NoCacheConstantDoubleValuesSource.rewrite
(IndexSearcher reader) IndexReaderFunctions.NoCacheConstantLongValuesSource.rewrite
(IndexSearcher reader) IndexReaderFunctions.SumTotalTermFreqValuesSource.rewrite
(IndexSearcher searcher) IndexReaderFunctions.TermFreqDoubleValuesSource.rewrite
(IndexSearcher searcher) ValueSource.ValueSourceSortField.rewrite
(IndexSearcher searcher) ValueSource.WrappedDoubleValuesSource.rewrite
(IndexSearcher searcher) ValueSource.WrappedLongValuesSource.rewrite
(IndexSearcher searcher) Constructors in org.apache.lucene.queries.function with parameters of type IndexSearcherModifierConstructorDescriptionFunctionRangeWeight
(IndexSearcher searcher) FunctionWeight
(IndexSearcher searcher, float boost) private
WrappedDoubleValuesSource
(ValueSource in, IndexSearcher searcher) private
WrappedLongValuesSource
(ValueSource in, IndexSearcher searcher) -
Uses of IndexSearcher in org.apache.lucene.queries.function.valuesource
Methods in org.apache.lucene.queries.function.valuesource with parameters of type IndexSearcherModifier and TypeMethodDescriptionvoid
ComparisonBoolFunction.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
DocFreqValueSource.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
DualFloatFunction.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
IfFunction.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
LinearFloatFunction.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
MaxDocValueSource.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
MultiBoolFunction.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
MultiFloatFunction.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
MultiFunction.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
NormValueSource.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
QueryValueSource.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
RangeMapFloatFunction.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
ReciprocalFloatFunction.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
ScaleFloatFunction.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
SimpleBoolFunction.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
SingleFunction.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
SumTotalTermFreqValueSource.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
TotalTermFreqValueSource.createWeight
(Map<Object, Object> context, IndexSearcher searcher) void
VectorValueSource.createWeight
(Map<Object, Object> context, IndexSearcher searcher) -
Uses of IndexSearcher in org.apache.lucene.queries.intervals
Methods in org.apache.lucene.queries.intervals with parameters of type IndexSearcherModifier and TypeMethodDescriptionIntervalQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) -
Uses of IndexSearcher in org.apache.lucene.queries.payloads
Methods in org.apache.lucene.queries.payloads with parameters of type IndexSearcherModifier and TypeMethodDescriptionPayloadScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SpanPayloadCheckQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Constructors in org.apache.lucene.queries.payloads with parameters of type IndexSearcherModifierConstructorDescriptionPayloadSpanWeight
(IndexSearcher searcher, SpanWeight innerWeight, float boost) SpanPayloadCheckWeight
(IndexSearcher searcher, Map<Term, TermStates> termStates, SpanWeight matchWeight, float boost, SpanPayloadCheckQuery.PayloadType payloadType) -
Uses of IndexSearcher in org.apache.lucene.queries.spans
Methods in org.apache.lucene.queries.spans with parameters of type IndexSearcherModifier and TypeMethodDescriptionprivate Similarity.SimScorer
SpanWeight.buildSimWeight
(SpanQuery query, IndexSearcher searcher, Map<Term, TermStates> termStates, float boost) FieldMaskingSpanQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SpanContainingQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SpanMultiTermQueryWrapper.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SpanNearQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SpanNearQuery.SpanGapQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SpanNotQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SpanOrQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SpanPositionCheckQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) abstract SpanWeight
SpanQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SpanTermQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) SpanWithinQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) Constructors in org.apache.lucene.queries.spans with parameters of type IndexSearcherModifierConstructorDescriptionSpanContainingWeight
(IndexSearcher searcher, Map<Term, TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) SpanContainWeight
(IndexSearcher searcher, Map<Term, TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) (package private)
SpanGapWeight
(IndexSearcher searcher, float boost) SpanNearWeight
(List<SpanWeight> subWeights, IndexSearcher searcher, Map<Term, TermStates> terms, float boost) SpanNotWeight
(IndexSearcher searcher, Map<Term, TermStates> terms, SpanWeight includeWeight, SpanWeight excludeWeight, float boost) SpanOrWeight
(IndexSearcher searcher, Map<Term, TermStates> terms, List<SpanWeight> subWeights, float boost) SpanPositionCheckWeight
(SpanWeight matchWeight, IndexSearcher searcher, Map<Term, TermStates> terms, float boost) SpanTermWeight
(TermStates termStates, IndexSearcher searcher, Map<Term, TermStates> terms, float boost) SpanWeight
(SpanQuery query, IndexSearcher searcher, Map<Term, TermStates> termStates, float boost) Create a new SpanWeightSpanWithinWeight
(IndexSearcher searcher, Map<Term, TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) -
Uses of IndexSearcher in org.apache.lucene.sandbox.document
Methods in org.apache.lucene.sandbox.document with parameters of type IndexSearcherModifier and TypeMethodDescriptionstatic TopFieldDocs
FloatPointNearestNeighbor.nearest
(IndexSearcher searcher, String field, int topN, float... origin) -
Uses of IndexSearcher in org.apache.lucene.sandbox.search
Subclasses of IndexSearcher in org.apache.lucene.sandbox.searchModifier and TypeClassDescriptionclass
An extension ofIndexSearcher
that records profile information for all queries it executes.Fields in org.apache.lucene.sandbox.search declared as IndexSearcherModifier and TypeFieldDescriptionprivate final IndexSearcher
CombinedFieldQuery.CombinedFieldWeight.searcher
Methods in org.apache.lucene.sandbox.search with parameters of type IndexSearcherModifier and TypeMethodDescriptionprotected int
PhraseWildcardQuery.collectMultiTermData
(PhraseWildcardQuery.MultiTerm multiTerm, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData) Collects theTermState
andTermStatistics
for a multi-term with expansion.protected void
PhraseWildcardQuery.collectMultiTermStats
(IndexSearcher searcher, Map<BytesRef, PhraseWildcardQuery.TermStats> termStatsMap, PhraseWildcardQuery.TermsData termsData, PhraseWildcardQuery.TermData termData) Collect the term stats across all segments.protected int
PhraseWildcardQuery.collectSingleTermData
(PhraseWildcardQuery.SingleTerm singleTerm, IndexSearcher searcher, List<LeafReaderContext> segments, PhraseWildcardQuery.TermsData termsData) Collects theTermState
andTermStatistics
for a single-term without expansion.protected int
PhraseWildcardQuery.MultiTerm.collectTermData
(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData) protected abstract int
PhraseWildcardQuery.PhraseTerm.collectTermData
(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData) CollectsTermState
andTermStatistics
for the term (potentially expanded).protected int
PhraseWildcardQuery.PhraseTerm.collectTermData
(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, PhraseWildcardQuery.TermsData termsData) CollectsTermState
andTermStatistics
for the term without expansion.protected int
PhraseWildcardQuery.SingleTerm.collectTermData
(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData) protected int
PhraseWildcardQuery.SingleTerm.collectTermData
(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, PhraseWildcardQuery.TermsData termsData) (package private) PhraseWeight
PhraseWildcardQuery.createPhraseWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost, PhraseWildcardQuery.TermsData termsData) CombinedFieldQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) CoveringQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) DocValuesTermsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) final Weight
MultiRangeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) PhraseWildcardQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) TermAutomatonQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) private CollectionStatistics
CombinedFieldQuery.CombinedFieldWeight.mergeCollectionStatistics
(IndexSearcher searcher) static TopFieldDocs
LatLonPointPrototypeQueries.nearest
(IndexSearcher searcher, String field, double latitude, double longitude, int n) Finds then
nearest indexed points to the provided point, according to Haversine distance.Constructors in org.apache.lucene.sandbox.search with parameters of type IndexSearcherModifierConstructorDescription(package private)
CombinedFieldWeight
(Query query, IndexSearcher searcher, ScoreMode scoreMode, float boost) TermAutomatonWeight
(Automaton automaton, IndexSearcher searcher, Map<Integer, TermStates> termStates, float boost) -
Uses of IndexSearcher in org.apache.lucene.search
Fields in org.apache.lucene.search declared as IndexSearcherModifier and TypeFieldDescriptionfinal IndexSearcher
SearcherLifetimeManager.SearcherTracker.searcher
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 TypeMethodDescriptionAbstractKnnVectorQuery.DocAndScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) BooleanQuery.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 usDocValuesRewriteMethod.MultiTermQueryDocValuesWrapper.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FieldExistsQuery.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 Weight
IndriQuery.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) MultiTermQueryConstantScoreWrapper.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) NamedMatches.NamedQuery.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) DoubleValuesSource.ConstantValuesSource.rewrite
(IndexSearcher searcher) DoubleValuesSource.DoubleValuesSortField.rewrite
(IndexSearcher searcher) DoubleValuesSource.FieldValuesSource.rewrite
(IndexSearcher searcher) DoubleValuesSource.LongDoubleValuesSource.rewrite
(IndexSearcher searcher) DoubleValuesSource.QueryDoubleValuesSource.rewrite
(IndexSearcher searcher) abstract DoubleValuesSource
DoubleValuesSource.rewrite
(IndexSearcher reader) Return a DoubleValuesSource specialised for the given IndexSearcherDoubleValuesSource.WeightDoubleValuesSource.rewrite
(IndexSearcher searcher) LongValuesSource.ConstantLongValuesSource.rewrite
(IndexSearcher searcher) LongValuesSource.DoubleLongValuesSource.rewrite
(IndexSearcher searcher) LongValuesSource.FieldValuesSource.rewrite
(IndexSearcher searcher) LongValuesSource.LongValuesSortField.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 IndexSearcherModifierConstructorDescription(package private)
BooleanWeight
(BooleanQuery query, IndexSearcher searcher, ScoreMode scoreMode, float boost) DisjunctionMaxWeight
(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 instanceSearcherTracker
(IndexSearcher searcher) (package private)
SynonymWeight
(Query query, IndexSearcher searcher, ScoreMode scoreMode, float boost) TermWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost, TermStates termStates) -
Uses of IndexSearcher in org.apache.lucene.search.grouping
Methods in org.apache.lucene.search.grouping with parameters of type IndexSearcherModifier and TypeMethodDescriptionprotected TopGroups<?>
GroupingSearch.groupByDocBlock
(IndexSearcher searcher, Query query, int groupOffset, int groupLimit) protected TopGroups
GroupingSearch.groupByFieldOrFunction
(IndexSearcher searcher, Query query, int groupOffset, int groupLimit) <T> TopGroups<T>
GroupingSearch.search
(IndexSearcher searcher, Query query, int groupOffset, int groupLimit) Executes a grouped search. -
Uses of IndexSearcher in org.apache.lucene.search.highlight
Fields in org.apache.lucene.search.highlight declared as IndexSearcherModifier and TypeFieldDescriptionprivate static final IndexSearcher
QueryTermExtractor.EMPTY_INDEXSEARCHER
for term extraction -
Uses of IndexSearcher in org.apache.lucene.search.join
Methods in org.apache.lucene.search.join with parameters of type IndexSearcherModifier and TypeMethodDescriptionprivate static Query
JoinUtil.createJoinQuery
(boolean multipleValuesPerDocument, String toField, Query fromQuery, String fromField, IndexSearcher fromSearcher, ScoreMode scoreMode, GenericTermsCollector collector) static Query
JoinUtil.createJoinQuery
(String fromField, boolean multipleValuesPerDocument, String toField, Class<? extends Number> numericType, Query fromQuery, IndexSearcher fromSearcher, ScoreMode scoreMode) Method for query time joining for numeric fields.static Query
JoinUtil.createJoinQuery
(String fromField, boolean multipleValuesPerDocument, String toField, Query fromQuery, IndexSearcher fromSearcher, ScoreMode scoreMode) Method for query time joining.static Query
JoinUtil.createJoinQuery
(String joinField, Query fromQuery, Query toQuery, IndexSearcher searcher, ScoreMode scoreMode, OrdinalMap ordinalMap) Delegates toJoinUtil.createJoinQuery(String, Query, Query, IndexSearcher, ScoreMode, OrdinalMap, int, int)
, but disables the min and max filtering.static Query
JoinUtil.createJoinQuery
(String joinField, Query fromQuery, Query toQuery, IndexSearcher searcher, ScoreMode scoreMode, OrdinalMap ordinalMap, int min, int max) A query time join using global ordinals over a dedicated join field.GlobalOrdinalsQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) GlobalOrdinalsWithScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) ParentChildrenBlockJoinQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) final Weight
PointInSetIncludingScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) TermsIncludingScoreQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) ToChildBlockJoinQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) ToParentBlockJoinQuery.createWeight
(IndexSearcher searcher, ScoreMode weightScoreMode, float boost) -
Uses of IndexSearcher in org.apache.lucene.search.matchhighlight
Fields in org.apache.lucene.search.matchhighlight declared as IndexSearcherConstructors in org.apache.lucene.search.matchhighlight with parameters of type IndexSearcherModifierConstructorDescriptionMatchHighlighter
(IndexSearcher searcher, Analyzer analyzer) MatchHighlighter
(IndexSearcher searcher, Analyzer analyzer, OffsetsRetrievalStrategySupplier offsetsRetrievalStrategies) MatchRegionRetriever
(IndexSearcher searcher, Query query, Analyzer analyzer) A constructor with the default offset strategy supplier.MatchRegionRetriever
(IndexSearcher searcher, Query query, OffsetsRetrievalStrategySupplier fieldOffsetStrategySupplier) -
Uses of IndexSearcher in org.apache.lucene.search.spell
Fields in org.apache.lucene.search.spell declared as IndexSearcherMethods in org.apache.lucene.search.spell that return IndexSearcherModifier and TypeMethodDescription(package private) IndexSearcher
SpellChecker.createSearcher
(Directory dir) Creates a new read-only IndexSearcherprivate IndexSearcher
SpellChecker.obtainSearcher()
Methods in org.apache.lucene.search.spell with parameters of type IndexSearcherModifier and TypeMethodDescriptionprivate void
SpellChecker.releaseSearcher
(IndexSearcher aSearcher) -
Uses of IndexSearcher in org.apache.lucene.search.suggest.analyzing
Methods in org.apache.lucene.search.suggest.analyzing with parameters of type IndexSearcherModifier and TypeMethodDescriptionprotected List<Lookup.LookupResult>
AnalyzingInfixSuggester.createResults
(IndexSearcher searcher, TopFieldDocs hits, int num, CharSequence charSequence, boolean doHighlight, Set<String> matchedTokens, String prefixToken) Create the results based on the search hits.protected List<Lookup.LookupResult>
BlendedInfixSuggester.createResults
(IndexSearcher searcher, TopFieldDocs hits, int num, CharSequence key, boolean doHighlight, Set<String> matchedTokens, String prefixToken) -
Uses of IndexSearcher in org.apache.lucene.search.suggest.document
Subclasses of IndexSearcher in org.apache.lucene.search.suggest.documentModifier and TypeClassDescriptionclass
Adds document suggest capabilities to IndexSearcher.Methods in org.apache.lucene.search.suggest.document with parameters of type IndexSearcherModifier and TypeMethodDescriptionContextQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) FuzzyCompletionQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) PrefixCompletionQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) RegexCompletionQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) -
Uses of IndexSearcher in org.apache.lucene.search.uhighlight
Fields in org.apache.lucene.search.uhighlight declared as IndexSearcherModifier and TypeFieldDescriptionprivate final IndexSearcher
UnifiedHighlighter.Builder.searcher
If null, can only use highlightWithoutSearcher.protected final IndexSearcher
UnifiedHighlighter.searcher
Methods in org.apache.lucene.search.uhighlight that return IndexSearcherModifier and TypeMethodDescriptionUnifiedHighlighter.Builder.getIndexSearcher()
...UnifiedHighlighter.getIndexSearcher()
...Methods in org.apache.lucene.search.uhighlight with parameters of type IndexSearcherModifier and TypeMethodDescriptionstatic UnifiedHighlighter.Builder
UnifiedHighlighter.builder
(IndexSearcher searcher, Analyzer indexAnalyzer) Constructors in org.apache.lucene.search.uhighlight with parameters of type IndexSearcherModifierConstructorDescriptionBuilder
(IndexSearcher searcher, Analyzer indexAnalyzer) Constructor for UH builder which acceptsIndexSearcher
andAnalyzer
objects.UnifiedHighlighter
(IndexSearcher indexSearcher, Analyzer indexAnalyzer) Deprecated. -
Uses of IndexSearcher in org.apache.lucene.spatial3d
Methods in org.apache.lucene.spatial3d with parameters of type IndexSearcherModifier and TypeMethodDescriptionPointInGeo3DShapeQuery.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost)