Uses of Class
org.apache.lucene.index.LeafReaderContext
Packages that use LeafReaderContext
Package
Description
The logical representation of a
Document
for indexing and
searching.Expressions.
Faceted search.
Taxonomy of Categories.
Code to maintain and access indices.
Misc index tools and index support.
Misc search implementations.
Monitoring framework
Filters and Queries that add to core Lucene.
Queries that compute score based upon a function.
FunctionValues for different data types.
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.
Sandbox faceting - Collectors that compute facets.
Sandbox faceting: facet cutters, see
FacetCutter
for details.Sandbox faceting: Range Faceting
Sandbox faceting: classes that can record per ordinal data E.g.
This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial
queries.
Code to search indices.
Comparators, used to compare hits so as to determine their sort order when collecting the top
results with
TopFieldCollector
.Grouping.
Highlighting search terms.
Support for index-time and query-time joins.
Classes related to vector search: knn and vector fields.
This package contains several components useful to build a highlighter on top of the
Matches
API.Support for Autocomplete/Autosuggest
Support for document suggestion
Lucene field & query support for the spatial geometry implemented in
org.apache.lucene.spatial3d.geom
.-
Uses of LeafReaderContext in org.apache.lucene.document
Methods in org.apache.lucene.document with parameters of type LeafReaderContextModifier and TypeMethodDescriptionprotected void
FeatureSortField.FeatureComparator.doSetNextReader
(LeafReaderContext context) LatLonPointDistanceComparator.getLeafComparator
(LeafReaderContext context) XYPointDistanceComparator.getLeafComparator
(LeafReaderContext context) FeatureDoubleValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) boolean
FeatureDoubleValuesSource.isCacheable
(LeafReaderContext ctx) protected boolean
SpatialQuery.queryIsCacheable
(LeafReaderContext ctx) -
Uses of LeafReaderContext in org.apache.lucene.expressions
Methods in org.apache.lucene.expressions with parameters of type LeafReaderContextModifier and TypeMethodDescriptionExpressionValueSource.explain
(LeafReaderContext ctx, int docId, Explanation scoreExplanation) CachingExpressionValueSource.getValues
(LeafReaderContext readerContext, DoubleValues scores) ExpressionValueSource.getValues
(LeafReaderContext readerContext, DoubleValues scores) private DoubleValues
CachingExpressionValueSource.getValuesWithCache
(LeafReaderContext readerContext, DoubleValues scores, Map<String, DoubleValues> valuesCache) boolean
ExpressionValueSource.isCacheable
(LeafReaderContext ctx) -
Uses of LeafReaderContext in org.apache.lucene.facet
Fields in org.apache.lucene.facet declared as LeafReaderContextModifier and TypeFieldDescriptionprivate final LeafReaderContext
DrillSidewaysScorer.context
private LeafReaderContext
FacetsCollector.context
final LeafReaderContext
FacetsCollector.MatchingDocs.context
Context for this segment.Methods in org.apache.lucene.facet with parameters of type LeafReaderContextModifier and TypeMethodDescriptionprotected void
FacetsCollector.doSetNextReader
(LeafReaderContext context) MultiDoubleValuesSource.FieldMultiValuedSource.getValues
(LeafReaderContext ctx) abstract MultiDoubleValues
MultiDoubleValuesSource.getValues
(LeafReaderContext ctx) Returns aMultiDoubleValues
instance for the passed-in LeafReaderContextMultiDoubleValuesSource.LongDoubleValuesSource.getValues
(LeafReaderContext ctx) MultiDoubleValuesSource.SingleValuedAsMultiValued.getValues
(LeafReaderContext ctx) MultiDoubleValuesSource.SortableMultiLongValuesSource.getValues
(LeafReaderContext ctx) MultiLongValuesSource.DoubleLongValuesSources.getValues
(LeafReaderContext ctx) MultiLongValuesSource.FieldMultiValueSource.getValues
(LeafReaderContext ctx) abstract MultiLongValues
MultiLongValuesSource.getValues
(LeafReaderContext ctx) Returns aMultiLongValues
instance for the passed-in LeafReaderContextMultiLongValuesSource.SingleValuedAsMultiValued.getValues
(LeafReaderContext ctx) boolean
MultiDoubleValuesSource.FieldMultiValuedSource.isCacheable
(LeafReaderContext ctx) boolean
MultiDoubleValuesSource.LongDoubleValuesSource.isCacheable
(LeafReaderContext ctx) boolean
MultiDoubleValuesSource.SingleValuedAsMultiValued.isCacheable
(LeafReaderContext ctx) boolean
MultiDoubleValuesSource.SortableMultiLongValuesSource.isCacheable
(LeafReaderContext ctx) boolean
MultiLongValuesSource.DoubleLongValuesSources.isCacheable
(LeafReaderContext ctx) boolean
MultiLongValuesSource.FieldMultiValueSource.isCacheable
(LeafReaderContext ctx) boolean
MultiLongValuesSource.SingleValuedAsMultiValued.isCacheable
(LeafReaderContext ctx) private void
StringValueFacetCounts.validateState
(LeafReaderContext context) Constructors in org.apache.lucene.facet with parameters of type LeafReaderContextModifierConstructorDescription(package private)
DrillSidewaysScorer
(LeafReaderContext context, Scorer baseScorer, DrillSidewaysScorer.DocsAndCost[] dims, boolean scoreSubDocsAtOnce) MatchingDocs
(LeafReaderContext context, DocIdSet bits, int totalHits, float[] scores) Sole constructor. -
Uses of LeafReaderContext in org.apache.lucene.facet.taxonomy
Methods in org.apache.lucene.facet.taxonomy with parameters of type LeafReaderContextModifier and TypeMethodDescriptionprivate CachedOrdinalsReader.CachedOrds
CachedOrdinalsReader.getCachedOrds
(LeafReaderContext context) Deprecated.TaxonomyFacetLabels.getFacetLabelReader
(LeafReaderContext readerContext) Create and return an instance ofTaxonomyFacetLabels.FacetLabelReader
to retrieve facet labels for multiple documents and (optionally) for a specific dimension.CachedOrdinalsReader.getReader
(LeafReaderContext context) Deprecated.DocValuesOrdinalsReader.getReader
(LeafReaderContext context) Deprecated.abstract OrdinalsReader.OrdinalsSegmentReader
OrdinalsReader.getReader
(LeafReaderContext context) Deprecated.Set current atomic reader.Constructors in org.apache.lucene.facet.taxonomy with parameters of type LeafReaderContextModifierConstructorDescriptionFacetLabelReader
(OrdinalsReader ordsReader, LeafReaderContext readerContext) Deprecated.Custom binary encodings for taxonomy ordinals are no longer supported starting with Lucene 9 -
Uses of LeafReaderContext in org.apache.lucene.index
Fields in org.apache.lucene.index declared as LeafReaderContextFields in org.apache.lucene.index with type parameters of type LeafReaderContextModifier and TypeFieldDescriptionprivate final List
<LeafReaderContext> CompositeReaderContext.Builder.leaves
private final List
<LeafReaderContext> CompositeReaderContext.leaves
private final List
<LeafReaderContext> LeafReaderContext.leaves
Methods in org.apache.lucene.index that return LeafReaderContextMethods in org.apache.lucene.index that return types with arguments of type LeafReaderContextModifier and TypeMethodDescriptionCompositeReaderContext.leaves()
final List
<LeafReaderContext> IndexReader.leaves()
Returns the reader's leaves, or itself if this reader is atomic.abstract List
<LeafReaderContext> IndexReaderContext.leaves()
Returns the context's leaves if this context is a top-level context.LeafReaderContext.leaves()
Methods in org.apache.lucene.index with parameters of type LeafReaderContextModifier and TypeMethodDescriptionTermStates.get
(LeafReaderContext ctx) static boolean
DocValues.isCacheable
(LeafReaderContext ctx, String... fields) Returnstrue
if the specified docvalues fields have not been updatedprivate static TermsEnum
TermStates.loadTermsEnum
(LeafReaderContext ctx, Term term) Method parameters in org.apache.lucene.index with type arguments of type LeafReaderContextModifier and TypeMethodDescriptionprivate static String
FieldInfos.getAndValidateParentField
(List<LeafReaderContext> leaves) static int
ReaderUtil.subIndex
(int n, List<LeafReaderContext> leaves) Returns index of the searcher/reader for documentn
in the array used to construct this searcher/reader. -
Uses of LeafReaderContext in org.apache.lucene.misc.index
Constructors in org.apache.lucene.misc.index with parameters of type LeafReaderContextModifierConstructorDescriptionDocumentFilteredLeafIndexReader
(LeafReaderContext context, Weight preserveWeight, boolean negateFilter) -
Uses of LeafReaderContext in org.apache.lucene.misc.search
Methods in org.apache.lucene.misc.search with parameters of type LeafReaderContextModifier and TypeMethodDescriptionprotected void
MemoryAccountingBitsetCollector.doSetNextReader
(LeafReaderContext context) protected abstract NumericDocValues
DiversifiedTopDocsCollector.getKeys
(LeafReaderContext context) Get a source of values used for grouping keysDiversifiedTopDocsCollector.getLeafCollector
(LeafReaderContext context) DocValuesStatsCollector.getLeafCollector
(LeafReaderContext context) protected abstract boolean
DocValuesStats.init
(LeafReaderContext context) Initializes this object with the given reader context.protected final boolean
DocValuesStats.NumericDocValuesStats.init
(LeafReaderContext context) protected final boolean
DocValuesStats.SortedDocValuesStats.init
(LeafReaderContext context) protected final boolean
DocValuesStats.SortedNumericDocValuesStats.init
(LeafReaderContext context) protected final boolean
DocValuesStats.SortedSetDocValuesStats.init
(LeafReaderContext context) -
Uses of LeafReaderContext in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as LeafReaderContextMethods in org.apache.lucene.monitor with parameters of type LeafReaderContextModifier and TypeMethodDescriptionvoid
ReadonlyQueryIndex.LazyMonitorQueryCollector.doSetNextReader
(LeafReaderContext context) void
WritableQueryIndex.MonitorQueryCollector.doSetNextReader
(LeafReaderContext context) -
Uses of LeafReaderContext in org.apache.lucene.queries
Method parameters in org.apache.lucene.queries with type arguments of type LeafReaderContextModifier and TypeMethodDescriptionvoid
CommonTermsQuery.collectTermStates
(IndexReader reader, List<LeafReaderContext> leaves, TermStates[] contextArray, Term[] queryTerms) -
Uses of LeafReaderContext in org.apache.lucene.queries.function
Methods in org.apache.lucene.queries.function with parameters of type LeafReaderContextModifier and TypeMethodDescriptionint
FunctionScoreQuery.FunctionScoreWeight.count
(LeafReaderContext context) void
ValueSource.ValueSourceComparator.doSetNextReader
(LeafReaderContext context) FunctionQuery.FunctionWeight.explain
(LeafReaderContext context, int doc) FunctionRangeQuery.FunctionRangeWeight.explain
(LeafReaderContext context, int doc) FunctionScoreQuery.FunctionScoreWeight.explain
(LeafReaderContext context, int doc) FunctionScoreQuery.MultiplicativeBoostValuesSource.explain
(LeafReaderContext ctx, int docId, Explanation scoreExplanation) FunctionScoreQuery.QueryBoostValuesSource.explain
(LeafReaderContext ctx, int docId, Explanation scoreExplanation) ValueSource.WrappedDoubleValuesSource.explain
(LeafReaderContext ctx, int docId, Explanation scoreExplanation) FunctionValues.getRangeScorer
(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) Yields aScorer
that matches documents with values between the specified range, and that which produces scores equal toFunctionValues.floatVal(int)
.FunctionValues.getScorer
(Weight weight, LeafReaderContext readerContext) Yields aScorer
that matches all documents, and that which produces scores equal toFunctionValues.floatVal(int)
.FunctionScoreQuery.MultiplicativeBoostValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) FunctionScoreQuery.QueryBoostValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) IndexReaderFunctions.IndexReaderDoubleValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) IndexReaderFunctions.NoCacheConstantDoubleValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) IndexReaderFunctions.NoCacheConstantLongValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) IndexReaderFunctions.SumTotalTermFreqValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) IndexReaderFunctions.TermFreqDoubleValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) ValueSource.FromDoubleValuesSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) abstract FunctionValues
ValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) Gets the values for this reader and the context that was previously passed to createWeight().ValueSource.WrappedDoubleValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) ValueSource.WrappedLongValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) boolean
FunctionQuery.FunctionWeight.isCacheable
(LeafReaderContext ctx) boolean
FunctionRangeQuery.FunctionRangeWeight.isCacheable
(LeafReaderContext ctx) boolean
FunctionScoreQuery.FunctionScoreWeight.isCacheable
(LeafReaderContext ctx) boolean
FunctionScoreQuery.MultiplicativeBoostValuesSource.isCacheable
(LeafReaderContext ctx) boolean
FunctionScoreQuery.QueryBoostValuesSource.isCacheable
(LeafReaderContext ctx) boolean
IndexReaderFunctions.IndexReaderDoubleValuesSource.isCacheable
(LeafReaderContext ctx) boolean
IndexReaderFunctions.NoCacheConstantDoubleValuesSource.isCacheable
(LeafReaderContext ctx) boolean
IndexReaderFunctions.NoCacheConstantLongValuesSource.isCacheable
(LeafReaderContext ctx) boolean
IndexReaderFunctions.SumTotalTermFreqValuesSource.isCacheable
(LeafReaderContext ctx) boolean
IndexReaderFunctions.TermFreqDoubleValuesSource.isCacheable
(LeafReaderContext ctx) boolean
ValueSource.WrappedDoubleValuesSource.isCacheable
(LeafReaderContext ctx) boolean
ValueSource.WrappedLongValuesSource.isCacheable
(LeafReaderContext ctx) FunctionScoreQuery.FunctionScoreWeight.matches
(LeafReaderContext context, int doc) FunctionQuery.FunctionWeight.scorer
(LeafReaderContext context) FunctionRangeQuery.FunctionRangeWeight.scorer
(LeafReaderContext context) FunctionScoreQuery.FunctionScoreWeight.scorer
(LeafReaderContext context) Constructors in org.apache.lucene.queries.function with parameters of type LeafReaderContextModifierConstructorDescriptionAllScorer
(LeafReaderContext context, FunctionQuery.FunctionWeight w, float boost) protected
ValueSourceScorer
(Weight weight, LeafReaderContext readerContext, FunctionValues values) -
Uses of LeafReaderContext in org.apache.lucene.queries.function.docvalues
Methods in org.apache.lucene.queries.function.docvalues with parameters of type LeafReaderContextModifier and TypeMethodDescriptionDocTermsIndexDocValues.getRangeScorer
(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) DoubleDocValues.getRangeScorer
(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) IntDocValues.getRangeScorer
(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) LongDocValues.getRangeScorer
(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) (package private) static SortedDocValues
DocTermsIndexDocValues.open
(LeafReaderContext context, String field) Constructors in org.apache.lucene.queries.function.docvalues with parameters of type LeafReaderContextModifierConstructorDescriptionDocTermsIndexDocValues
(ValueSource vs, LeafReaderContext context, String field) -
Uses of LeafReaderContext in org.apache.lucene.queries.function.valuesource
Fields in org.apache.lucene.queries.function.valuesource declared as LeafReaderContextModifier and TypeFieldDescription(package private) final LeafReaderContext
QueryDocValues.readerContext
Methods in org.apache.lucene.queries.function.valuesource with parameters of type LeafReaderContextModifier and TypeMethodDescriptionprivate ScaleFloatFunction.ScaleInfo
ScaleFloatFunction.createScaleInfo
(Map<Object, Object> context, LeafReaderContext readerContext) protected NumericDocValues
DoubleFieldSource.getNumericDocValues
(Map<Object, Object> context, LeafReaderContext readerContext) protected NumericDocValues
FloatFieldSource.getNumericDocValues
(Map<Object, Object> context, LeafReaderContext readerContext) protected NumericDocValues
IntFieldSource.getNumericDocValues
(Map<Object, Object> context, LeafReaderContext readerContext) protected NumericDocValues
LongFieldSource.getNumericDocValues
(Map<Object, Object> context, LeafReaderContext readerContext) protected NumericDocValues
MultiValuedDoubleFieldSource.getNumericDocValues
(Map<Object, Object> context, LeafReaderContext readerContext) protected NumericDocValues
MultiValuedFloatFieldSource.getNumericDocValues
(Map<Object, Object> context, LeafReaderContext readerContext) protected NumericDocValues
MultiValuedIntFieldSource.getNumericDocValues
(Map<Object, Object> context, LeafReaderContext readerContext) protected NumericDocValues
MultiValuedLongFieldSource.getNumericDocValues
(Map<Object, Object> context, LeafReaderContext readerContext) ByteKnnVectorFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) BytesRefFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) ComparisonBoolFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) ConstKnnByteVectorValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) ConstKnnFloatValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) ConstValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) DefFunction.getValues
(Map<Object, Object> fcontext, LeafReaderContext readerContext) DocFreqValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) DoubleConstValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) DoubleFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) DualFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) EnumFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) FloatFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) FloatKnnVectorFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) IDFValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) IfFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) IntFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) JoinDocFreqValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) LinearFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) LiteralValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) LongFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) MaxDocValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) MultiBoolFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) MultiFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) NormValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) NumDocsValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) QueryValueSource.getValues
(Map<Object, Object> fcontext, LeafReaderContext readerContext) RangeMapFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) ReciprocalFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) ScaleFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) SimpleBoolFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) SimpleFloatFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) SortedSetFieldSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) SumTotalTermFreqValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) TermFreqValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) TFValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) TotalTermFreqValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) VectorSimilarityFunction.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) VectorValueSource.getValues
(Map<Object, Object> context, LeafReaderContext readerContext) static FunctionValues[]
MultiFunction.valsArr
(List<ValueSource> sources, Map<Object, Object> fcontext, LeafReaderContext readerContext) Constructors in org.apache.lucene.queries.function.valuesource with parameters of type LeafReaderContextModifierConstructorDescriptionQueryDocValues
(QueryValueSource vs, LeafReaderContext readerContext, Map<Object, Object> fcontext) -
Uses of LeafReaderContext in org.apache.lucene.queries.intervals
Methods in org.apache.lucene.queries.intervals with parameters of type LeafReaderContextModifier and TypeMethodDescriptionIntervalQuery.IntervalWeight.explain
(LeafReaderContext context, int doc) final IntervalIterator
ConjunctionIntervalsSource.intervals
(String field, LeafReaderContext ctx) final IntervalIterator
DifferenceIntervalsSource.intervals
(String field, LeafReaderContext ctx) DisjunctionIntervalsSource.intervals
(String field, LeafReaderContext ctx) ExtendedIntervalsSource.intervals
(String field, LeafReaderContext ctx) FilteredIntervalsSource.intervals
(String field, LeafReaderContext ctx) FixedFieldIntervalsSource.intervals
(String field, LeafReaderContext ctx) abstract IntervalIterator
IntervalsSource.intervals
(String field, LeafReaderContext ctx) Create anIntervalIterator
exposing the minimum intervals defined by thisIntervalsSource
MinimizingConjunctionIntervalsSource.intervals
(String field, LeafReaderContext ctx) MinimumShouldMatchIntervalsSource.intervals
(String field, LeafReaderContext ctx) MultiTermIntervalsSource.intervals
(String field, LeafReaderContext ctx) NoMatchIntervalsSource.intervals
(String field, LeafReaderContext ctx) OffsetIntervalsSource.intervals
(String field, LeafReaderContext ctx) PayloadFilteredTermIntervalsSource.intervals
(String field, LeafReaderContext ctx) RepeatingIntervalsSource.intervals
(String field, LeafReaderContext ctx) TermIntervalsSource.intervals
(String field, LeafReaderContext ctx) boolean
IntervalQuery.IntervalWeight.isCacheable
(LeafReaderContext ctx) final IntervalMatchesIterator
ConjunctionIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) final IntervalMatchesIterator
DifferenceIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) DisjunctionIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) ExtendedIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) FilteredIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) FixedFieldIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) IntervalQuery.IntervalWeight.matches
(LeafReaderContext context, int doc) abstract IntervalMatchesIterator
IntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) Return aMatchesIterator
over the intervals defined by thisIntervalsSource
for a given document and fieldMinimizingConjunctionIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) MinimumShouldMatchIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) MultiTermIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) NoMatchIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) OffsetIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) PayloadFilteredTermIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) RepeatingIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) TermIntervalsSource.matches
(String field, LeafReaderContext ctx, int doc) IntervalQuery.IntervalWeight.scorer
(LeafReaderContext context) -
Uses of LeafReaderContext in org.apache.lucene.queries.payloads
Methods in org.apache.lucene.queries.payloads with parameters of type LeafReaderContextModifier and TypeMethodDescriptionPayloadScoreQuery.PayloadSpanWeight.explain
(LeafReaderContext context, int doc) PayloadScoreQuery.PayloadSpanWeight.getSpans
(LeafReaderContext ctx, SpanWeight.Postings requiredPostings) SpanPayloadCheckQuery.SpanPayloadCheckWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) boolean
PayloadScoreQuery.PayloadSpanWeight.isCacheable
(LeafReaderContext ctx) boolean
SpanPayloadCheckQuery.SpanPayloadCheckWeight.isCacheable
(LeafReaderContext ctx) PayloadScoreQuery.PayloadSpanWeight.scorer
(LeafReaderContext context) SpanPayloadCheckQuery.SpanPayloadCheckWeight.scorer
(LeafReaderContext context) -
Uses of LeafReaderContext in org.apache.lucene.queries.spans
Methods in org.apache.lucene.queries.spans with parameters of type LeafReaderContextModifier and TypeMethodDescriptionSpanWeight.explain
(LeafReaderContext context, int doc) SpanWeight.getSimScorer
(LeafReaderContext context) Return a LeafSimScorer for this contextSpanContainingQuery.SpanContainingWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) Return spans frombig
that contain at least one spans fromlittle
.SpanNearQuery.SpanGapQuery.SpanGapWeight.getSpans
(LeafReaderContext ctx, SpanWeight.Postings requiredPostings) SpanNearQuery.SpanNearWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) SpanNotQuery.SpanNotWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) SpanOrQuery.SpanOrWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) SpanPositionCheckQuery.SpanPositionCheckWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) SpanTermQuery.SpanTermWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) abstract Spans
SpanWeight.getSpans
(LeafReaderContext ctx, SpanWeight.Postings requiredPostings) Expert: Return a Spans object iterating over matches from this WeightSpanWithinQuery.SpanWithinWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) Return spans fromlittle
that are contained in a spans frombig
.boolean
SpanContainingQuery.SpanContainingWeight.isCacheable
(LeafReaderContext ctx) boolean
SpanNearQuery.SpanGapQuery.SpanGapWeight.isCacheable
(LeafReaderContext ctx) boolean
SpanNearQuery.SpanNearWeight.isCacheable
(LeafReaderContext ctx) boolean
SpanNotQuery.SpanNotWeight.isCacheable
(LeafReaderContext ctx) boolean
SpanOrQuery.SpanOrWeight.isCacheable
(LeafReaderContext ctx) boolean
SpanPositionCheckQuery.SpanPositionCheckWeight.isCacheable
(LeafReaderContext ctx) boolean
SpanTermQuery.SpanTermWeight.isCacheable
(LeafReaderContext ctx) boolean
SpanWithinQuery.SpanWithinWeight.isCacheable
(LeafReaderContext ctx) SpanWeight.matches
(LeafReaderContext context, int doc) SpanContainQuery.SpanContainWeight.prepareConjunction
(LeafReaderContext context, SpanWeight.Postings postings) SpanWeight.scorer
(LeafReaderContext context) -
Uses of LeafReaderContext in org.apache.lucene.sandbox.facet
Fields in org.apache.lucene.sandbox.facet declared as LeafReaderContextMethods in org.apache.lucene.sandbox.facet with parameters of type LeafReaderContextModifier and TypeMethodDescriptionFacetFieldCollector.getLeafCollector
(LeafReaderContext context) Constructors in org.apache.lucene.sandbox.facet with parameters of type LeafReaderContextModifierConstructorDescription(package private)
FacetFieldLeafCollector
(LeafReaderContext context, FacetCutter cutter, FacetRecorder recorder) -
Uses of LeafReaderContext in org.apache.lucene.sandbox.facet.cutters
Methods in org.apache.lucene.sandbox.facet.cutters with parameters of type LeafReaderContextModifier and TypeMethodDescriptionFacetCutter.createLeafCutter
(LeafReaderContext context) Get cutter for the leaf.LongValueFacetCutter.createLeafCutter
(LeafReaderContext context) TaxonomyFacetsCutter.createLeafCutter
(LeafReaderContext context) -
Uses of LeafReaderContext in org.apache.lucene.sandbox.facet.cutters.ranges
Methods in org.apache.lucene.sandbox.facet.cutters.ranges with parameters of type LeafReaderContextModifier and TypeMethodDescriptionDoubleRangeFacetCutter.createLeafCutter
(LeafReaderContext context) NonOverlappingLongRangeFacetCutter.createLeafCutter
(LeafReaderContext context) OverlappingLongRangeFacetCutter.createLeafCutter
(LeafReaderContext context) -
Uses of LeafReaderContext in org.apache.lucene.sandbox.facet.recorders
Methods in org.apache.lucene.sandbox.facet.recorders with parameters of type LeafReaderContextModifier and TypeMethodDescriptionCountFacetRecorder.getLeafRecorder
(LeafReaderContext context) FacetRecorder.getLeafRecorder
(LeafReaderContext context) Get leaf recorder.LongAggregationsFacetRecorder.getLeafRecorder
(LeafReaderContext context) MultiFacetsRecorder.getLeafRecorder
(LeafReaderContext context) -
Uses of LeafReaderContext in org.apache.lucene.sandbox.search
Methods in org.apache.lucene.sandbox.search that return types with arguments of type LeafReaderContextModifier and TypeMethodDescriptionprotected List
<LeafReaderContext> PhraseWildcardQuery.SegmentTermsSizeComparator.createTermsSizeSortedCopyOf
(List<LeafReaderContext> segments) Methods in org.apache.lucene.sandbox.search with parameters of type LeafReaderContextModifier and TypeMethodDescriptionQueryProfilerWeight.bulkScorer
(LeafReaderContext context) protected List
<PhraseWildcardQuery.TermBytesTermState> PhraseWildcardQuery.collectMultiTermDataForSegment
(PhraseWildcardQuery.MultiTerm multiTerm, LeafReaderContext leafReaderContext, int remainingExpansions, MutableValueBool shouldStopSegmentIteration, Map<BytesRef, PhraseWildcardQuery.TermStats> termStatsMap) Collects theTermState
list andTermStatistics
for a multi-term on a specific index segment.int
PhraseWildcardQuery.SegmentTermsSizeComparator.compare
(LeafReaderContext leafReaderContext1, LeafReaderContext leafReaderContext2) int
QueryProfilerWeight.count
(LeafReaderContext context) protected TermsEnum
PhraseWildcardQuery.createTermsEnum
(PhraseWildcardQuery.MultiTerm multiTerm, LeafReaderContext leafReaderContext) Creates theTermsEnum
for the givenPhraseWildcardQuery.MultiTerm
and segment.CombinedFieldQuery.CombinedFieldWeight.explain
(LeafReaderContext context, int doc) CoveringQuery.CoveringWeight.explain
(LeafReaderContext context, int doc) TermAutomatonQuery.TermAutomatonWeight.explain
(LeafReaderContext context, int doc) LargeNumHitsTopDocsCollector.getLeafCollector
(LeafReaderContext context) ProfilerCollector.getLeafCollector
(LeafReaderContext context) ProfilerCollectorWrapper.getLeafCollector
(LeafReaderContext context) private long
PhraseWildcardQuery.SegmentTermsSizeComparator.getTermsSize
(LeafReaderContext leafReaderContext) protected List
<PhraseWildcardQuery.TermBytesTermState> PhraseWildcardQuery.TermData.getTermStatesForSegment
(LeafReaderContext leafReaderContext) boolean
CombinedFieldQuery.CombinedFieldWeight.isCacheable
(LeafReaderContext ctx) boolean
CoveringQuery.CoveringWeight.isCacheable
(LeafReaderContext ctx) boolean
QueryProfilerWeight.isCacheable
(LeafReaderContext ctx) boolean
TermAutomatonQuery.TermAutomatonWeight.isCacheable
(LeafReaderContext ctx) CombinedFieldQuery.CombinedFieldWeight.matches
(LeafReaderContext context, int doc) CoveringQuery.CoveringWeight.matches
(LeafReaderContext context, int doc) CombinedFieldQuery.CombinedFieldWeight.scorer
(LeafReaderContext context) CoveringQuery.CoveringWeight.scorer
(LeafReaderContext context) QueryProfilerWeight.scorer
(LeafReaderContext context) TermAutomatonQuery.TermAutomatonWeight.scorer
(LeafReaderContext context) QueryProfilerWeight.scorerSupplier
(LeafReaderContext context) protected void
PhraseWildcardQuery.TermData.setTermStatesForSegment
(LeafReaderContext leafReaderContext, List<PhraseWildcardQuery.TermBytesTermState> termStates) Sets the collected list ofPhraseWildcardQuery.TermBytesTermState
for the given segment.Method parameters in org.apache.lucene.sandbox.search with type arguments of type LeafReaderContextModifier 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 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) protected List
<LeafReaderContext> PhraseWildcardQuery.SegmentTermsSizeComparator.createTermsSizeSortedCopyOf
(List<LeafReaderContext> segments) -
Uses of LeafReaderContext in org.apache.lucene.search
Fields in org.apache.lucene.search declared as LeafReaderContextModifier and TypeFieldDescriptionfinal LeafReaderContext[]
IndexSearcher.LeafSlice.leaves
The leaves that make up this slice.protected LeafReaderContext
TermCollectingRewrite.TermCollector.readerContext
Fields in org.apache.lucene.search with type parameters of type LeafReaderContextModifier and TypeFieldDescription(package private) List
<LeafReaderContext> CachingCollector.NoScoreCachingCollector.contexts
protected final List
<LeafReaderContext> IndexSearcher.leafContexts
private final List
<LeafReaderContext> IndexSearcher.CachingLeafSlicesSupplier.leaves
private final Predicate
<LeafReaderContext> LRUQueryCache.leavesToCache
private final Function
<List<LeafReaderContext>, IndexSearcher.LeafSlice[]> IndexSearcher.CachingLeafSlicesSupplier.sliceProvider
Methods in org.apache.lucene.search that return types with arguments of type LeafReaderContextModifier and TypeMethodDescriptionIndexSearcher.getLeafContexts()
Expert: returns leaf contexts associated with this searcher.Methods in org.apache.lucene.search with parameters of type LeafReaderContextModifier and TypeMethodDescriptionprotected abstract TopDocs
AbstractKnnVectorQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitedLimit, KnnCollectorManager knnCollectorManager) protected abstract TopDocs
AbstractVectorSimilarityQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitLimit) protected TopDocs
ByteVectorSimilarityQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitLimit) protected TopDocs
FloatVectorSimilarityQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitLimit) protected TopDocs
KnnByteVectorQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitedLimit, KnnCollectorManager knnCollectorManager) protected TopDocs
KnnFloatVectorQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitedLimit, KnnCollectorManager knnCollectorManager) (package private) BulkScorer
BooleanWeight.booleanScorer
(LeafReaderContext context) Try to build a boolean scorer for this weight.AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight.bulkScorer
(LeafReaderContext context) BooleanWeight.bulkScorer
(LeafReaderContext context) IndriAndWeight.bulkScorer
(LeafReaderContext context) LRUQueryCache.CachingWrapperWeight.bulkScorer
(LeafReaderContext context) Weight.bulkScorer
(LeafReaderContext context) Optional method, to return aBulkScorer
to score the query and send hits to aCollector
.private LRUQueryCache.CacheAndCount
LRUQueryCache.CachingWrapperWeight.cache
(LeafReaderContext context) int
BooleanWeight.count
(LeafReaderContext context) int
LRUQueryCache.CachingWrapperWeight.count
(LeafReaderContext context) int
TermQuery.TermWeight.count
(LeafReaderContext context) int
Weight.count
(LeafReaderContext context) Counts the number of live documents that match a givenWeight.parentQuery
in a leaf.(package private) abstract VectorScorer
AbstractKnnVectorQuery.createVectorScorer
(LeafReaderContext context, FieldInfo fi) (package private) abstract VectorScorer
AbstractVectorSimilarityQuery.createVectorScorer
(LeafReaderContext context) (package private) VectorScorer
ByteVectorSimilarityQuery.createVectorScorer
(LeafReaderContext context) (package private) VectorScorer
FloatVectorSimilarityQuery.createVectorScorer
(LeafReaderContext context) (package private) VectorScorer
KnnByteVectorQuery.createVectorScorer
(LeafReaderContext context, FieldInfo fi) (package private) VectorScorer
KnnFloatVectorQuery.createVectorScorer
(LeafReaderContext context, FieldInfo fi) static MatchesIterator
MatchesUtils.disjunction
(LeafReaderContext context, int doc, Query query, String field, BytesRefIterator terms) Create a MatchesIterator that is a disjunction over a list of terms extracted from aBytesRefIterator
.protected void
SimpleCollector.doSetNextReader
(LeafReaderContext context) This method is called before collectingcontext
.protected abstract void
SimpleFieldComparator.doSetNextReader
(LeafReaderContext context) This method is called before collectingcontext
.protected TopDocs
AbstractKnnVectorQuery.exactSearch
(LeafReaderContext context, DocIdSetIterator acceptIterator, QueryTimeout queryTimeout) BooleanWeight.explain
(LeafReaderContext context, int doc) ConstantScoreWeight.explain
(LeafReaderContext context, int doc) DisjunctionMaxQuery.DisjunctionMaxWeight.explain
(LeafReaderContext context, int doc) Explain the score we computed for docDoubleValuesSource.ConstantValuesSource.explain
(LeafReaderContext ctx, int docId, Explanation scoreExplanation) DoubleValuesSource.explain
(LeafReaderContext ctx, int docId, Explanation scoreExplanation) An explanation of the value for the named document.DoubleValuesSource.FieldValuesSource.explain
(LeafReaderContext ctx, int docId, Explanation scoreExplanation) DoubleValuesSource.WeightDoubleValuesSource.explain
(LeafReaderContext ctx, int docId, Explanation scoreExplanation) FilterWeight.explain
(LeafReaderContext context, int doc) IndriAndWeight.explain
(LeafReaderContext context, int doc) PhraseWeight.explain
(LeafReaderContext context, int doc) SynonymQuery.SynonymWeight.explain
(LeafReaderContext context, int doc) TermQuery.TermWeight.explain
(LeafReaderContext context, int doc) abstract Explanation
Weight.explain
(LeafReaderContext context, int doc) An explanation of the score computation for the named document.(package private) static MatchesIterator
DisjunctionMatchesIterator.fromTerms
(LeafReaderContext context, int doc, Query query, String field, List<Term> terms) Create aDisjunctionMatchesIterator
over a list of terms(package private) static MatchesIterator
DisjunctionMatchesIterator.fromTermsEnum
(LeafReaderContext context, int doc, Query query, String field, BytesRefIterator terms) Create aDisjunctionMatchesIterator
over a list of terms extracted from aBytesRefIterator
protected BinaryDocValues
FieldComparator.TermValComparator.getBinaryDocValues
(LeafReaderContext context, String field) Retrieves the BinaryDocValues for the field in this segmentFieldValueHitQueue.getComparators
(LeafReaderContext context) IndexSortSortedNumericDocValuesRangeQuery.getDocIdSetIterator
(SortField sortField, SortField.Type sortFieldType, LeafReaderContext context, DocIdSetIterator delegate) Computes the document IDs that lie within the range [lowerValue, upperValue] by performing binary search on the field's doc values.IndexSortSortedNumericDocValuesRangeQuery.getDocIdSetIteratorOrNull
(LeafReaderContext context) IndexSortSortedNumericDocValuesRangeQuery.getDocIdSetIteratorOrNullFromBkd
(LeafReaderContext context, DocIdSetIterator delegate) CachingCollector.NoScoreCachingCollector.getLeafCollector
(LeafReaderContext context) Collector.getLeafCollector
(LeafReaderContext context) Create a newcollector
to collect the given context.FilterCollector.getLeafCollector
(LeafReaderContext context) MultiCollector.getLeafCollector
(LeafReaderContext context) PositiveScoresOnlyCollector.getLeafCollector
(LeafReaderContext context) final LeafCollector
SimpleCollector.getLeafCollector
(LeafReaderContext context) TimeLimitingCollector.getLeafCollector
(LeafReaderContext context) Deprecated.TopFieldCollector.PagingFieldCollector.getLeafCollector
(LeafReaderContext context) TopFieldCollector.SimpleFieldCollector.getLeafCollector
(LeafReaderContext context) TopScoreDocCollector.PagingTopScoreDocCollector.getLeafCollector
(LeafReaderContext context) TopScoreDocCollector.SimpleTopScoreDocCollector.getLeafCollector
(LeafReaderContext context) TotalHitCountCollector.getLeafCollector
(LeafReaderContext context) abstract LeafFieldComparator
FieldComparator.getLeafComparator
(LeafReaderContext context) Get a per-segmentLeafFieldComparator
to collect the givenLeafReaderContext
.FieldComparator.RelevanceComparator.getLeafComparator
(LeafReaderContext context) FieldComparator.TermValComparator.getLeafComparator
(LeafReaderContext context) final LeafFieldComparator
SimpleFieldComparator.getLeafComparator
(LeafReaderContext context) private TopDocs
AbstractKnnVectorQuery.getLeafResults
(LeafReaderContext ctx, Weight filterWeight, TimeLimitingKnnCollectorManager timeLimitingKnnCollectorManager) protected abstract PhraseMatcher
PhraseWeight.getPhraseMatcher
(LeafReaderContext context, Similarity.SimScorer scorer, boolean exposeOffsets) ByteVectorSimilarityValuesSource.getScorer
(LeafReaderContext ctx) FloatVectorSimilarityValuesSource.getScorer
(LeafReaderContext ctx) private Scorer
IndriAndWeight.getScorer
(LeafReaderContext context) protected abstract VectorScorer
VectorSimilarityValuesSource.getScorer
(LeafReaderContext ctx) private TermsEnum
TermQuery.TermWeight.getTermsEnum
(LeafReaderContext context) Returns aTermsEnum
positioned at this weights Term or null if the term does not exist in the given contextDoubleValuesSource.ConstantValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) DoubleValuesSource.FieldValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) abstract DoubleValues
DoubleValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) Returns aDoubleValues
instance for the passed-in LeafReaderContext and scoresDoubleValuesSource.LongDoubleValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) DoubleValuesSource.QueryDoubleValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) DoubleValuesSource.SortableLongDoubleValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) DoubleValuesSource.WeightDoubleValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) LongValuesSource.ConstantLongValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) LongValuesSource.DoubleLongValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) LongValuesSource.FieldValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) abstract LongValues
LongValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) Returns aLongValues
instance for the passed-in LeafReaderContext and scoresVectorSimilarityValuesSource.getValues
(LeafReaderContext ctx, DoubleValues scores) private boolean
FieldExistsQuery.hasStrictlyConsistentFieldInfos
(LeafReaderContext context) boolean
AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight.isCacheable
(LeafReaderContext ctx) boolean
BooleanWeight.isCacheable
(LeafReaderContext ctx) boolean
DisjunctionMaxQuery.DisjunctionMaxWeight.isCacheable
(LeafReaderContext ctx) boolean
DoubleValuesSource.ConstantValuesSource.isCacheable
(LeafReaderContext ctx) boolean
DoubleValuesSource.FieldValuesSource.isCacheable
(LeafReaderContext ctx) boolean
DoubleValuesSource.LongDoubleValuesSource.isCacheable
(LeafReaderContext ctx) boolean
DoubleValuesSource.QueryDoubleValuesSource.isCacheable
(LeafReaderContext ctx) boolean
DoubleValuesSource.SortableLongDoubleValuesSource.isCacheable
(LeafReaderContext ctx) boolean
DoubleValuesSource.WeightDoubleValuesSource.isCacheable
(LeafReaderContext ctx) boolean
FilterWeight.isCacheable
(LeafReaderContext ctx) boolean
IndriAndWeight.isCacheable
(LeafReaderContext ctx) boolean
LongValuesSource.ConstantLongValuesSource.isCacheable
(LeafReaderContext ctx) boolean
LongValuesSource.DoubleLongValuesSource.isCacheable
(LeafReaderContext ctx) boolean
LongValuesSource.FieldValuesSource.isCacheable
(LeafReaderContext ctx) boolean
LRUQueryCache.CachingWrapperWeight.isCacheable
(LeafReaderContext ctx) boolean
PhraseWeight.isCacheable
(LeafReaderContext ctx) boolean
SegmentCacheable.isCacheable
(LeafReaderContext ctx) boolean
SynonymQuery.SynonymWeight.isCacheable
(LeafReaderContext ctx) boolean
TermQuery.TermWeight.isCacheable
(LeafReaderContext ctx) boolean
VectorSimilarityValuesSource.isCacheable
(LeafReaderContext ctx) private static IndexSortSortedNumericDocValuesRangeQuery.ValueComparator
IndexSortSortedNumericDocValuesRangeQuery.loadComparator
(SortField sortField, SortField.Type type, long topValue, LeafReaderContext context) AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight.matches
(LeafReaderContext context, int doc) BooleanWeight.matches
(LeafReaderContext context, int doc) DisjunctionMaxQuery.DisjunctionMaxWeight.matches
(LeafReaderContext context, int doc) FilterWeight.matches
(LeafReaderContext context, int doc) LRUQueryCache.CachingWrapperWeight.matches
(LeafReaderContext context, int doc) PhraseWeight.matches
(LeafReaderContext context, int doc) SynonymQuery.SynonymWeight.matches
(LeafReaderContext context, int doc) TermQuery.TermWeight.matches
(LeafReaderContext context, int doc) Weight.matches
(LeafReaderContext context, int doc) ReturnsMatches
for a specific document, ornull
if the document does not match the parent queryTimeLimitingKnnCollectorManager.newCollector
(int visitedLimit, LeafReaderContext context) private int
BooleanWeight.optCount
(LeafReaderContext context, BooleanClause.Occur occur) Return the number of matches of optional clauses, or -1 if unknown, or 0 if there are no optional clauses.(package private) BulkScorer
BooleanWeight.optionalBulkScorer
(LeafReaderContext context) private int
BooleanWeight.reqCount
(LeafReaderContext context) Return the number of matches of required clauses, or -1 if unknown, or numDocs if there are no required clauses.private BulkScorer
BooleanWeight.requiredBulkScorer
(LeafReaderContext context) AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight.rewriteAsBooleanQuery
(LeafReaderContext context, List<AbstractMultiTermQueryConstantScoreWrapper.TermAndState> collectedTerms) protected abstract AbstractMultiTermQueryConstantScoreWrapper.WeightOrDocIdSetIterator
AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight.rewriteInner
(LeafReaderContext context, int fieldDocCount, Terms terms, TermsEnum termsEnum, List<AbstractMultiTermQueryConstantScoreWrapper.TermAndState> collectedTerms) Rewrite the query as either aWeight
or aDocIdSetIterator
wrapped in aAbstractMultiTermQueryConstantScoreWrapper.WeightOrDocIdSetIterator
.AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight.scorer
(LeafReaderContext context) BooleanWeight.scorer
(LeafReaderContext context) DisjunctionMaxQuery.DisjunctionMaxWeight.scorer
(LeafReaderContext context) FilterWeight.scorer
(LeafReaderContext context) IndriAndWeight.scorer
(LeafReaderContext context) LRUQueryCache.CachingWrapperWeight.scorer
(LeafReaderContext context) PhraseWeight.scorer
(LeafReaderContext context) SynonymQuery.SynonymWeight.scorer
(LeafReaderContext context) TermQuery.TermWeight.scorer
(LeafReaderContext context) abstract Scorer
Weight.scorer
(LeafReaderContext context) Returns aScorer
which can iterate in order over all matching documents and assign them a score.AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight.scorerSupplier
(LeafReaderContext context) BooleanWeight.scorerSupplier
(LeafReaderContext context) DisjunctionMaxQuery.DisjunctionMaxWeight.scorerSupplier
(LeafReaderContext context) LRUQueryCache.CachingWrapperWeight.scorerSupplier
(LeafReaderContext context) TermQuery.TermWeight.scorerSupplier
(LeafReaderContext context) Weight.scorerSupplier
(LeafReaderContext context) Optional method.private TopDocs
AbstractKnnVectorQuery.searchLeaf
(LeafReaderContext ctx, Weight filterWeight, TimeLimitingKnnCollectorManager timeLimitingKnnCollectorManager) protected void
IndexSearcher.searchLeaf
(LeafReaderContext ctx, Weight weight, Collector collector) Lower-level search APIvoid
TermCollectingRewrite.TermCollector.setReaderContext
(IndexReaderContext topReaderContext, LeafReaderContext readerContext) private boolean
LRUQueryCache.CachingWrapperWeight.shouldCache
(LeafReaderContext context) Check whether this segment is eligible for caching, regardless of the query.static DoubleValues
DoubleValuesSource.similarityToQueryVector
(LeafReaderContext ctx, byte[] queryVector, String vectorField) Returns a DoubleValues instance for computing the vector similarity score per document against the byte query vectorstatic DoubleValues
DoubleValuesSource.similarityToQueryVector
(LeafReaderContext ctx, float[] queryVector, String vectorField) Returns a DoubleValues instance for computing the vector similarity score per document against the float query vectorboolean
LRUQueryCache.MinSegmentSizePredicate.test
(LeafReaderContext context) Method parameters in org.apache.lucene.search with type arguments of type LeafReaderContextModifier and TypeMethodDescription(package private) static int[]
AbstractKnnVectorQuery.findSegmentStarts
(List<LeafReaderContext> leaves, int[] docs) protected void
IndexSearcher.search
(List<LeafReaderContext> leaves, Weight weight, Collector collector) Lower-level search API.protected IndexSearcher.LeafSlice[]
IndexSearcher.slices
(List<LeafReaderContext> leaves) Expert: Creates an array of leaf slices each holding a subset of the given leaves.static IndexSearcher.LeafSlice[]
IndexSearcher.slices
(List<LeafReaderContext> leaves, int maxDocsPerSlice, int maxSegmentsPerSlice) Static method to segregate LeafReaderContexts amongst multiple slicesConstructors in org.apache.lucene.search with parameters of type LeafReaderContextModifierConstructorDescription(package private)
TopFieldLeafCollector
(FieldValueHitQueue<FieldValueHitQueue.Entry> queue, Sort sort, LeafReaderContext context) Constructor parameters in org.apache.lucene.search with type arguments of type LeafReaderContextModifierConstructorDescriptionprivate
CachingLeafSlicesSupplier
(Function<List<LeafReaderContext>, IndexSearcher.LeafSlice[]> provider, List<LeafReaderContext> leaves) private
CachingLeafSlicesSupplier
(Function<List<LeafReaderContext>, IndexSearcher.LeafSlice[]> provider, List<LeafReaderContext> leaves) LeafSlice
(List<LeafReaderContext> leavesList) LRUQueryCache
(int maxSize, long maxRamBytesUsed, Predicate<LeafReaderContext> leavesToCache, float skipCacheFactor) Expert: Create a new instance that will cache at mostmaxSize
queries with at mostmaxRamBytesUsed
bytes of memory, only on leaves that satisfyleavesToCache
. -
Uses of LeafReaderContext in org.apache.lucene.search.comparators
Fields in org.apache.lucene.search.comparators declared as LeafReaderContextModifier and TypeFieldDescriptionprivate final LeafReaderContext
NumericComparator.NumericLeafComparator.context
private final LeafReaderContext
TermOrdValComparator.CompetitiveIterator.context
Methods in org.apache.lucene.search.comparators with parameters of type LeafReaderContextModifier and TypeMethodDescriptionDocComparator.getLeafComparator
(LeafReaderContext context) DoubleComparator.getLeafComparator
(LeafReaderContext context) FloatComparator.getLeafComparator
(LeafReaderContext context) IntComparator.getLeafComparator
(LeafReaderContext context) LongComparator.getLeafComparator
(LeafReaderContext context) TermOrdValComparator.getLeafComparator
(LeafReaderContext context) protected NumericDocValues
NumericComparator.NumericLeafComparator.getNumericDocValues
(LeafReaderContext context, String field) Retrieves the NumericDocValues for the field in this segmentprotected SortedDocValues
TermOrdValComparator.getSortedDocValues
(LeafReaderContext context, String field) Retrieves the SortedDocValues for the field in this segmentConstructors in org.apache.lucene.search.comparators with parameters of type LeafReaderContextModifierConstructorDescription(package private)
CompetitiveIterator
(LeafReaderContext context, String field, boolean dense, TermsEnum docValuesTerms) DocLeafComparator
(LeafReaderContext context) DoubleLeafComparator
(LeafReaderContext context) FloatLeafComparator
(LeafReaderContext context) IntLeafComparator
(LeafReaderContext context) LongLeafComparator
(LeafReaderContext context) NumericLeafComparator
(LeafReaderContext context) (package private)
TermOrdValLeafComparator
(LeafReaderContext context, SortedDocValues values) -
Uses of LeafReaderContext in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as LeafReaderContextModifier and TypeFieldDescriptionprotected LeafReaderContext
AllGroupHeadsCollector.context
private LeafReaderContext
DoubleRangeGroupSelector.context
private LeafReaderContext
LongRangeGroupSelector.context
private LeafReaderContext
BlockGroupingCollector.currentReaderContext
(package private) LeafReaderContext
BlockGroupingCollector.OneGroup.readerContext
Methods in org.apache.lucene.search.grouping with parameters of type LeafReaderContextModifier and TypeMethodDescriptionprotected void
AllGroupHeadsCollector.doSetNextReader
(LeafReaderContext context) protected void
AllGroupsCollector.doSetNextReader
(LeafReaderContext context) protected void
BlockGroupingCollector.doSetNextReader
(LeafReaderContext readerContext) protected void
DistinctValuesCollector.ValuesCollector.doSetNextReader
(LeafReaderContext context) protected void
FirstPassGroupingCollector.doSetNextReader
(LeafReaderContext readerContext) protected void
SecondPassGroupingCollector.doSetNextReader
(LeafReaderContext readerContext) protected void
TermGroupFacetCollector.MV.doSetNextReader
(LeafReaderContext context) protected void
TermGroupFacetCollector.SV.doSetNextReader
(LeafReaderContext context) protected abstract AllGroupHeadsCollector.GroupHead
<T> AllGroupHeadsCollector.newGroupHead
(int doc, T value, LeafReaderContext context, Scorable scorer) Create a new GroupHead for the given group value, initialized with a doc, context and scorerprotected AllGroupHeadsCollector.GroupHead
<T> AllGroupHeadsCollector.ScoringGroupHeadsCollector.newGroupHead
(int doc, T value, LeafReaderContext context, Scorable scorer) protected AllGroupHeadsCollector.GroupHead
<T> AllGroupHeadsCollector.SortingGroupHeadsCollector.newGroupHead
(int doc, T value, LeafReaderContext ctx, Scorable scorer) protected void
AllGroupHeadsCollector.GroupHead.setNextReader
(LeafReaderContext ctx) Called for each segmentvoid
AllGroupHeadsCollector.SortingGroupHead.setNextReader
(LeafReaderContext ctx) void
DoubleRangeGroupSelector.setNextReader
(LeafReaderContext readerContext) final void
GroupReducer.setNextReader
(LeafReaderContext ctx) Called when the parentSecondPassGroupingCollector
moves to a new segmentabstract void
GroupSelector.setNextReader
(LeafReaderContext readerContext) Set the LeafReaderContextvoid
LongRangeGroupSelector.setNextReader
(LeafReaderContext readerContext) void
TermGroupSelector.setNextReader
(LeafReaderContext readerContext) void
ValueSourceGroupSelector.setNextReader
(LeafReaderContext readerContext) Constructors in org.apache.lucene.search.grouping with parameters of type LeafReaderContextModifierConstructorDescriptionprotected
SortingGroupHead
(Sort sort, T groupValue, int doc, LeafReaderContext context, Scorable scorer) -
Uses of LeafReaderContext in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight that return LeafReaderContextModifier and TypeMethodDescriptionprotected LeafReaderContext
WeightedSpanTermExtractor.getLeafContext()
-
Uses of LeafReaderContext in org.apache.lucene.search.join
Methods in org.apache.lucene.search.join with parameters of type LeafReaderContextModifier and TypeMethodDescriptionprotected TopDocs
DiversifyingChildrenByteKnnVectorQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitedLimit, KnnCollectorManager knnCollectorManager) protected TopDocs
DiversifyingChildrenFloatKnnVectorQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitedLimit, KnnCollectorManager knnCollectorManager) ToParentBlockJoinQuery.BlockJoinWeight.bulkScorer
(LeafReaderContext context) protected final void
DocValuesTermsCollector.doSetNextReader
(LeafReaderContext context) protected TopDocs
DiversifyingChildrenByteKnnVectorQuery.exactSearch
(LeafReaderContext context, DocIdSetIterator acceptIterator, QueryTimeout queryTimeout) protected TopDocs
DiversifyingChildrenFloatKnnVectorQuery.exactSearch
(LeafReaderContext context, DocIdSetIterator acceptIterator, QueryTimeout queryTimeout) GlobalOrdinalsQuery.W.explain
(LeafReaderContext context, int doc) GlobalOrdinalsWithScoreQuery.W.explain
(LeafReaderContext context, int doc) ToChildBlockJoinQuery.ToChildBlockJoinWeight.explain
(LeafReaderContext context, int doc) ToParentBlockJoinQuery.BlockJoinScorer.explain
(LeafReaderContext context, Weight childWeight, ScoreMode scoreMode) ToParentBlockJoinQuery.BlockJoinWeight.explain
(LeafReaderContext context, int doc) BitSetProducer.getBitSet
(LeafReaderContext context) Produce aBitSet
matching the expected documents on the given segment.QueryBitSetProducer.getBitSet
(LeafReaderContext context) GlobalOrdinalsCollector.getLeafCollector
(LeafReaderContext context) GlobalOrdinalsWithScoreCollector.getLeafCollector
(LeafReaderContext context) GlobalOrdinalsWithScoreCollector.NoScore.getLeafCollector
(LeafReaderContext context) boolean
GlobalOrdinalsQuery.W.isCacheable
(LeafReaderContext ctx) boolean
GlobalOrdinalsWithScoreQuery.W.isCacheable
(LeafReaderContext ctx) ToParentBlockJoinQuery.BlockJoinWeight.matches
(LeafReaderContext context, int doc) DiversifyingNearestChildrenKnnCollectorManager.newCollector
(int visitedLimit, LeafReaderContext context) Return a newDiversifyingNearestChildrenKnnCollector
instance.GlobalOrdinalsQuery.W.scorer
(LeafReaderContext context) GlobalOrdinalsWithScoreQuery.W.scorer
(LeafReaderContext context) ToChildBlockJoinQuery.ToChildBlockJoinWeight.scorer
(LeafReaderContext readerContext) ToParentBlockJoinQuery.BlockJoinWeight.scorer
(LeafReaderContext context) ToParentBlockJoinQuery.BlockJoinWeight.scorerSupplier
(LeafReaderContext context) -
Uses of LeafReaderContext in org.apache.lucene.search.knn
Methods in org.apache.lucene.search.knn with parameters of type LeafReaderContextModifier and TypeMethodDescriptionKnnCollectorManager.newCollector
(int visitedLimit, LeafReaderContext context) Return a newKnnCollector
instance.TopKnnCollectorManager.newCollector
(int visitedLimit, LeafReaderContext context) Return a newTopKnnCollector
instance. -
Uses of LeafReaderContext in org.apache.lucene.search.matchhighlight
Fields in org.apache.lucene.search.matchhighlight with type parameters of type LeafReaderContextModifier and TypeFieldDescriptionprivate final List
<LeafReaderContext> MatchRegionRetriever.leaves
Methods in org.apache.lucene.search.matchhighlight with parameters of type LeafReaderContextModifier and TypeMethodDescriptionvoid
MatchRegionRetriever.highlightDocument
(LeafReaderContext leafReaderContext, int contextDocId, MatchRegionRetriever.FieldValueProvider doc, Predicate<String> acceptField, Map<String, List<OffsetRange>> outputHighlights) Low-level method for retrieving hit ranges for a single document.Method parameters in org.apache.lucene.search.matchhighlight with type arguments of type LeafReaderContextModifier and TypeMethodDescriptionprivate boolean
MatchRegionRetriever.checkOrderConsistency
(List<LeafReaderContext> leaves) Constructors in org.apache.lucene.search.matchhighlight with parameters of type LeafReaderContextModifierConstructorDescriptionDocumentFieldValueProvider
(LeafReaderContext currentContext, int docId, Set<String> preloadFields) -
Uses of LeafReaderContext in org.apache.lucene.search.suggest
Fields in org.apache.lucene.search.suggest with type parameters of type LeafReaderContextModifier and TypeFieldDescriptionprivate final List
<LeafReaderContext> DocumentValueSourceDictionary.DocumentValueSourceInputIterator.leaves
leaves of the readerMethods in org.apache.lucene.search.suggest with parameters of type LeafReaderContextModifier and TypeMethodDescriptionabstract Bits
BitsProducer.getBits
(LeafReaderContext context) ReturnBits
for the given leaf. -
Uses of LeafReaderContext in org.apache.lucene.search.suggest.document
Methods in org.apache.lucene.search.suggest.document with parameters of type LeafReaderContextModifier and TypeMethodDescriptionCompletionWeight.bulkScorer
(LeafReaderContext context) protected void
TopSuggestDocsCollector.doSetNextReader
(LeafReaderContext context) CompletionWeight.explain
(LeafReaderContext context, int doc) boolean
CompletionWeight.isCacheable
(LeafReaderContext ctx) This object can be cachedCompletionWeight.scorer
(LeafReaderContext context) -
Uses of LeafReaderContext in org.apache.lucene.spatial3d
Methods in org.apache.lucene.spatial3d with parameters of type LeafReaderContextModifier and TypeMethodDescriptionGeo3DPointDistanceComparator.getLeafComparator
(LeafReaderContext context) Geo3DPointOutsideDistanceComparator.getLeafComparator
(LeafReaderContext context)