Uses of Class
org.apache.lucene.index.LeafReaderContext
-
Packages that use LeafReaderContext Package Description org.apache.lucene.document The logical representation of aDocument
for indexing and searching.org.apache.lucene.expressions Expressions.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.misc.index Misc index tools and index support.org.apache.lucene.misc.search Misc search implementations.org.apache.lucene.monitor Monitoring frameworkorg.apache.lucene.queries Filters and Queries that add to core Lucene.org.apache.lucene.queries.function Queries that compute score based upon a function.org.apache.lucene.queries.function.docvalues FunctionValues for different data types.org.apache.lucene.queries.function.valuesource A variety of functions to use with FunctionQuery.org.apache.lucene.queries.intervals Intervals queriesorg.apache.lucene.queries.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.queries.spans The calculus of spans.org.apache.lucene.sandbox.search This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial queries.org.apache.lucene.search Code to search indices.org.apache.lucene.search.comparators Comparators, used to compare hits so as to determine their sort order when collecting the top results withTopFieldCollector
.org.apache.lucene.search.grouping Grouping.org.apache.lucene.search.highlight Highlighting search terms.org.apache.lucene.search.join Support for index-time and query-time joins.org.apache.lucene.search.knn Classes related to vector search: knn and vector fields.org.apache.lucene.search.matchhighlight This package contains several components useful to build a highlighter on top of theMatches
API.org.apache.lucene.search.suggest Support for Autocomplete/Autosuggestorg.apache.lucene.search.suggest.document Support for document suggestionorg.apache.lucene.spatial3d Lucene field & query support for the spatial geometry implemented inorg.apache.lucene.spatial3d.geom
. -
-
Uses of LeafReaderContext in org.apache.lucene.document
Methods in org.apache.lucene.document with parameters of type LeafReaderContext Modifier and Type Method Description protected void
FeatureSortField.FeatureComparator. doSetNextReader(LeafReaderContext context)
LeafFieldComparator
LatLonPointDistanceComparator. getLeafComparator(LeafReaderContext context)
LeafFieldComparator
XYPointDistanceComparator. getLeafComparator(LeafReaderContext context)
DoubleValues
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 LeafReaderContext Modifier and Type Method Description Explanation
ExpressionValueSource. explain(LeafReaderContext ctx, int docId, Explanation scoreExplanation)
DoubleValues
CachingExpressionValueSource. getValues(LeafReaderContext readerContext, DoubleValues scores)
DoubleValues
ExpressionValueSource. getValues(LeafReaderContext readerContext, DoubleValues scores)
private DoubleValues
CachingExpressionValueSource. getValuesWithCache(LeafReaderContext readerContext, DoubleValues scores, java.util.Map<java.lang.String,DoubleValues> valuesCache)
boolean
ExpressionValueSource. isCacheable(LeafReaderContext ctx)
-
Uses of LeafReaderContext in org.apache.lucene.index
Fields in org.apache.lucene.index declared as LeafReaderContext Modifier and Type Field Description private LeafReaderContext
LeafReader. readerContext
Fields in org.apache.lucene.index with type parameters of type LeafReaderContext Modifier and Type Field Description private java.util.List<LeafReaderContext>
CompositeReaderContext.Builder. leaves
private java.util.List<LeafReaderContext>
CompositeReaderContext. leaves
private java.util.List<LeafReaderContext>
LeafReaderContext. leaves
Methods in org.apache.lucene.index that return LeafReaderContext Modifier and Type Method Description LeafReaderContext
LeafReader. getContext()
Methods in org.apache.lucene.index that return types with arguments of type LeafReaderContext Modifier and Type Method Description java.util.List<LeafReaderContext>
CompositeReaderContext. leaves()
java.util.List<LeafReaderContext>
IndexReader. leaves()
Returns the reader's leaves, or itself if this reader is atomic.abstract java.util.List<LeafReaderContext>
IndexReaderContext. leaves()
Returns the context's leaves if this context is a top-level context.java.util.List<LeafReaderContext>
LeafReaderContext. leaves()
Methods in org.apache.lucene.index with parameters of type LeafReaderContext Modifier and Type Method Description TermState
TermStates. get(LeafReaderContext ctx)
static boolean
DocValues. isCacheable(LeafReaderContext ctx, java.lang.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 LeafReaderContext Modifier and Type Method Description private static java.lang.String
FieldInfos. getAndValidateParentField(java.util.List<LeafReaderContext> leaves)
static int
ReaderUtil. subIndex(int n, java.util.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 LeafReaderContext Constructor Description DocumentFilteredLeafIndexReader(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 LeafReaderContext Modifier and Type Method Description protected void
MemoryAccountingBitsetCollector. doSetNextReader(LeafReaderContext context)
protected abstract NumericDocValues
DiversifiedTopDocsCollector. getKeys(LeafReaderContext context)
Get a source of values used for grouping keysLeafCollector
DiversifiedTopDocsCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
DocValuesStatsCollector. getLeafCollector(LeafReaderContext context)
protected abstract boolean
DocValuesStats. init(LeafReaderContext context)
Initializes this object with the given reader context.protected boolean
DocValuesStats.NumericDocValuesStats. init(LeafReaderContext context)
protected boolean
DocValuesStats.SortedDocValuesStats. init(LeafReaderContext context)
protected boolean
DocValuesStats.SortedNumericDocValuesStats. init(LeafReaderContext context)
protected boolean
DocValuesStats.SortedSetDocValuesStats. init(LeafReaderContext context)
-
Uses of LeafReaderContext in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as LeafReaderContext Modifier and Type Field Description (package private) LeafReaderContext
QueryIndex.DataValues. ctx
Methods in org.apache.lucene.monitor with parameters of type LeafReaderContext Modifier and Type Method Description void
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 LeafReaderContext Modifier and Type Method Description void
CommonTermsQuery. collectTermStates(IndexReader reader, java.util.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 LeafReaderContext Modifier and Type Method Description int
FunctionScoreQuery.FunctionScoreWeight. count(LeafReaderContext context)
void
ValueSource.ValueSourceComparator. doSetNextReader(LeafReaderContext context)
Explanation
FunctionQuery.FunctionWeight. explain(LeafReaderContext context, int doc)
Explanation
FunctionRangeQuery.FunctionRangeWeight. explain(LeafReaderContext context, int doc)
Explanation
FunctionScoreQuery.FunctionScoreWeight. explain(LeafReaderContext context, int doc)
Explanation
FunctionScoreQuery.MultiplicativeBoostValuesSource. explain(LeafReaderContext ctx, int docId, Explanation scoreExplanation)
Explanation
FunctionScoreQuery.QueryBoostValuesSource. explain(LeafReaderContext ctx, int docId, Explanation scoreExplanation)
Explanation
ValueSource.WrappedDoubleValuesSource. explain(LeafReaderContext ctx, int docId, Explanation scoreExplanation)
ValueSourceScorer
FunctionValues. getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.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)
.ValueSourceScorer
FunctionValues. getScorer(Weight weight, LeafReaderContext readerContext)
Yields aScorer
that matches all documents, and that which produces scores equal toFunctionValues.floatVal(int)
.DoubleValues
FunctionScoreQuery.MultiplicativeBoostValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
DoubleValues
FunctionScoreQuery.QueryBoostValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
DoubleValues
IndexReaderFunctions.IndexReaderDoubleValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
DoubleValues
IndexReaderFunctions.NoCacheConstantDoubleValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
LongValues
IndexReaderFunctions.NoCacheConstantLongValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
LongValues
IndexReaderFunctions.SumTotalTermFreqValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
DoubleValues
IndexReaderFunctions.TermFreqDoubleValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
FunctionValues
ValueSource.FromDoubleValuesSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
abstract FunctionValues
ValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
Gets the values for this reader and the context that was previously passed to createWeight().DoubleValues
ValueSource.WrappedDoubleValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
LongValues
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)
Matches
FunctionScoreQuery.FunctionScoreWeight. matches(LeafReaderContext context, int doc)
Scorer
FunctionQuery.FunctionWeight. scorer(LeafReaderContext context)
ValueSourceScorer
FunctionRangeQuery.FunctionRangeWeight. scorer(LeafReaderContext context)
Scorer
FunctionScoreQuery.FunctionScoreWeight. scorer(LeafReaderContext context)
Constructors in org.apache.lucene.queries.function with parameters of type LeafReaderContext Constructor Description AllScorer(LeafReaderContext context, FunctionQuery.FunctionWeight w, float boost)
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 LeafReaderContext Modifier and Type Method Description ValueSourceScorer
DocTermsIndexDocValues. getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)
ValueSourceScorer
DoubleDocValues. getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)
ValueSourceScorer
IntDocValues. getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)
ValueSourceScorer
LongDocValues. getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)
(package private) static SortedDocValues
DocTermsIndexDocValues. open(LeafReaderContext context, java.lang.String field)
Constructors in org.apache.lucene.queries.function.docvalues with parameters of type LeafReaderContext Constructor Description DocTermsIndexDocValues(ValueSource vs, LeafReaderContext context, java.lang.String field)
-
Uses of LeafReaderContext in org.apache.lucene.queries.function.valuesource
Fields in org.apache.lucene.queries.function.valuesource declared as LeafReaderContext Modifier and Type Field Description (package private) LeafReaderContext
QueryDocValues. readerContext
Methods in org.apache.lucene.queries.function.valuesource with parameters of type LeafReaderContext Modifier and Type Method Description private ScaleFloatFunction.ScaleInfo
ScaleFloatFunction. createScaleInfo(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
protected NumericDocValues
DoubleFieldSource. getNumericDocValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
protected NumericDocValues
FloatFieldSource. getNumericDocValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
protected NumericDocValues
IntFieldSource. getNumericDocValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
protected NumericDocValues
LongFieldSource. getNumericDocValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
protected NumericDocValues
MultiValuedDoubleFieldSource. getNumericDocValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
protected NumericDocValues
MultiValuedFloatFieldSource. getNumericDocValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
protected NumericDocValues
MultiValuedIntFieldSource. getNumericDocValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
protected NumericDocValues
MultiValuedLongFieldSource. getNumericDocValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
ByteKnnVectorFieldSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
BytesRefFieldSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
ComparisonBoolFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
ConstKnnByteVectorValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
ConstKnnFloatValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
ConstValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
DefFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> fcontext, LeafReaderContext readerContext)
FunctionValues
DocFreqValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
DoubleConstValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
DoubleFieldSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
DualFloatFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
EnumFieldSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
FloatFieldSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
FloatKnnVectorFieldSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
IDFValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
IfFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
IntFieldSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
JoinDocFreqValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
LinearFloatFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
LiteralValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
LongFieldSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
MaxDocValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
BoolDocValues
MultiBoolFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
MultiFloatFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
NormValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
NumDocsValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
QueryValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> fcontext, LeafReaderContext readerContext)
FunctionValues
RangeMapFloatFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
ReciprocalFloatFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
ScaleFloatFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
BoolDocValues
SimpleBoolFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
SimpleFloatFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
SortedSetFieldSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
SumTotalTermFreqValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
TermFreqValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
TFValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
TotalTermFreqValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
VectorSimilarityFunction. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
FunctionValues
VectorValueSource. getValues(java.util.Map<java.lang.Object,java.lang.Object> context, LeafReaderContext readerContext)
static FunctionValues[]
MultiFunction. valsArr(java.util.List<ValueSource> sources, java.util.Map<java.lang.Object,java.lang.Object> fcontext, LeafReaderContext readerContext)
Constructors in org.apache.lucene.queries.function.valuesource with parameters of type LeafReaderContext Constructor Description QueryDocValues(QueryValueSource vs, LeafReaderContext readerContext, java.util.Map<java.lang.Object,java.lang.Object> fcontext)
-
Uses of LeafReaderContext in org.apache.lucene.queries.intervals
Methods in org.apache.lucene.queries.intervals with parameters of type LeafReaderContext Modifier and Type Method Description Explanation
IntervalQuery.IntervalWeight. explain(LeafReaderContext context, int doc)
IntervalIterator
ConjunctionIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
IntervalIterator
DifferenceIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
IntervalIterator
DisjunctionIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
IntervalIterator
ExtendedIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
IntervalIterator
FilteredIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
IntervalIterator
FixedFieldIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
abstract IntervalIterator
IntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
Create anIntervalIterator
exposing the minimum intervals defined by thisIntervalsSource
IntervalIterator
MinimizingConjunctionIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
IntervalIterator
MinimumShouldMatchIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
IntervalIterator
MultiTermIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
IntervalIterator
NoMatchIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
IntervalIterator
OffsetIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
IntervalIterator
PayloadFilteredTermIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
IntervalIterator
RepeatingIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
IntervalIterator
TermIntervalsSource. intervals(java.lang.String field, LeafReaderContext ctx)
boolean
IntervalQuery.IntervalWeight. isCacheable(LeafReaderContext ctx)
IntervalMatchesIterator
ConjunctionIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
IntervalMatchesIterator
DifferenceIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
IntervalMatchesIterator
DisjunctionIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
IntervalMatchesIterator
ExtendedIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
IntervalMatchesIterator
FilteredIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
IntervalMatchesIterator
FixedFieldIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
Matches
IntervalQuery.IntervalWeight. matches(LeafReaderContext context, int doc)
abstract IntervalMatchesIterator
IntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
Return aMatchesIterator
over the intervals defined by thisIntervalsSource
for a given document and fieldIntervalMatchesIterator
MinimizingConjunctionIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
IntervalMatchesIterator
MinimumShouldMatchIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
IntervalMatchesIterator
MultiTermIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
IntervalMatchesIterator
NoMatchIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
IntervalMatchesIterator
OffsetIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
IntervalMatchesIterator
PayloadFilteredTermIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
IntervalMatchesIterator
RepeatingIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
IntervalMatchesIterator
TermIntervalsSource. matches(java.lang.String field, LeafReaderContext ctx, int doc)
Scorer
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 LeafReaderContext Modifier and Type Method Description Explanation
PayloadScoreQuery.PayloadSpanWeight. explain(LeafReaderContext context, int doc)
Spans
PayloadScoreQuery.PayloadSpanWeight. getSpans(LeafReaderContext ctx, SpanWeight.Postings requiredPostings)
Spans
SpanPayloadCheckQuery.SpanPayloadCheckWeight. getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings)
boolean
PayloadScoreQuery.PayloadSpanWeight. isCacheable(LeafReaderContext ctx)
boolean
SpanPayloadCheckQuery.SpanPayloadCheckWeight. isCacheable(LeafReaderContext ctx)
SpanScorer
PayloadScoreQuery.PayloadSpanWeight. scorer(LeafReaderContext context)
SpanScorer
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 LeafReaderContext Modifier and Type Method Description Explanation
SpanWeight. explain(LeafReaderContext context, int doc)
LeafSimScorer
SpanWeight. getSimScorer(LeafReaderContext context)
Return a LeafSimScorer for this contextSpans
SpanContainingQuery.SpanContainingWeight. getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings)
Return spans frombig
that contain at least one spans fromlittle
.Spans
SpanNearQuery.SpanGapQuery.SpanGapWeight. getSpans(LeafReaderContext ctx, SpanWeight.Postings requiredPostings)
Spans
SpanNearQuery.SpanNearWeight. getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings)
Spans
SpanNotQuery.SpanNotWeight. getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings)
Spans
SpanOrQuery.SpanOrWeight. getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings)
Spans
SpanPositionCheckQuery.SpanPositionCheckWeight. getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings)
Spans
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 WeightSpans
SpanWithinQuery.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)
Matches
SpanWeight. matches(LeafReaderContext context, int doc)
(package private) java.util.ArrayList<Spans>
SpanContainQuery.SpanContainWeight. prepareConjunction(LeafReaderContext context, SpanWeight.Postings postings)
SpanScorer
SpanWeight. scorer(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 LeafReaderContext Modifier and Type Method Description protected java.util.List<LeafReaderContext>
PhraseWildcardQuery.SegmentTermsSizeComparator. createTermsSizeSortedCopyOf(java.util.List<LeafReaderContext> segments)
Methods in org.apache.lucene.sandbox.search with parameters of type LeafReaderContext Modifier and Type Method Description BulkScorer
QueryProfilerWeight. bulkScorer(LeafReaderContext context)
protected java.util.List<PhraseWildcardQuery.TermBytesTermState>
PhraseWildcardQuery. collectMultiTermDataForSegment(PhraseWildcardQuery.MultiTerm multiTerm, LeafReaderContext leafReaderContext, int remainingExpansions, MutableValueBool shouldStopSegmentIteration, java.util.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.Explanation
CombinedFieldQuery.CombinedFieldWeight. explain(LeafReaderContext context, int doc)
Explanation
CoveringQuery.CoveringWeight. explain(LeafReaderContext context, int doc)
Explanation
TermAutomatonQuery.TermAutomatonWeight. explain(LeafReaderContext context, int doc)
LeafCollector
LargeNumHitsTopDocsCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
ProfilerCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
ProfilerCollectorWrapper. getLeafCollector(LeafReaderContext context)
private long
PhraseWildcardQuery.SegmentTermsSizeComparator. getTermsSize(LeafReaderContext leafReaderContext)
protected java.util.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)
Matches
CombinedFieldQuery.CombinedFieldWeight. matches(LeafReaderContext context, int doc)
Matches
CoveringQuery.CoveringWeight. matches(LeafReaderContext context, int doc)
Scorer
CombinedFieldQuery.CombinedFieldWeight. scorer(LeafReaderContext context)
Scorer
CoveringQuery.CoveringWeight. scorer(LeafReaderContext context)
Scorer
QueryProfilerWeight. scorer(LeafReaderContext context)
Scorer
TermAutomatonQuery.TermAutomatonWeight. scorer(LeafReaderContext context)
ScorerSupplier
QueryProfilerWeight. scorerSupplier(LeafReaderContext context)
protected void
PhraseWildcardQuery.TermData. setTermStatesForSegment(LeafReaderContext leafReaderContext, java.util.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 LeafReaderContext Modifier and Type Method Description protected int
PhraseWildcardQuery. collectMultiTermData(PhraseWildcardQuery.MultiTerm multiTerm, IndexSearcher searcher, java.util.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, java.util.List<LeafReaderContext> segments, PhraseWildcardQuery.TermsData termsData)
Collects theTermState
andTermStatistics
for a single-term without expansion.protected int
PhraseWildcardQuery.MultiTerm. collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, java.util.List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData)
protected abstract int
PhraseWildcardQuery.PhraseTerm. collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, java.util.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, java.util.List<LeafReaderContext> segments, PhraseWildcardQuery.TermsData termsData)
CollectsTermState
andTermStatistics
for the term without expansion.protected int
PhraseWildcardQuery.SingleTerm. collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, java.util.List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData)
protected int
PhraseWildcardQuery.SingleTerm. collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, java.util.List<LeafReaderContext> segments, PhraseWildcardQuery.TermsData termsData)
protected java.util.List<LeafReaderContext>
PhraseWildcardQuery.SegmentTermsSizeComparator. createTermsSizeSortedCopyOf(java.util.List<LeafReaderContext> segments)
-
Uses of LeafReaderContext in org.apache.lucene.search
Fields in org.apache.lucene.search declared as LeafReaderContext Modifier and Type Field Description 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 LeafReaderContext Modifier and Type Field Description (package private) java.util.List<LeafReaderContext>
CachingCollector.NoScoreCachingCollector. contexts
protected java.util.List<LeafReaderContext>
IndexSearcher. leafContexts
private java.util.List<LeafReaderContext>
IndexSearcher.CachingLeafSlicesSupplier. leaves
private java.util.function.Predicate<LeafReaderContext>
LRUQueryCache. leavesToCache
private java.util.function.Function<java.util.List<LeafReaderContext>,IndexSearcher.LeafSlice[]>
IndexSearcher.CachingLeafSlicesSupplier. sliceProvider
Methods in org.apache.lucene.search that return types with arguments of type LeafReaderContext Modifier and Type Method Description java.util.List<LeafReaderContext>
IndexSearcher. getLeafContexts()
Expert: returns leaf contexts associated with this searcher.Methods in org.apache.lucene.search with parameters of type LeafReaderContext Modifier and Type Method Description protected 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.BulkScorer
AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight. bulkScorer(LeafReaderContext context)
BulkScorer
BooleanWeight. bulkScorer(LeafReaderContext context)
BulkScorer
IndriAndWeight. bulkScorer(LeafReaderContext context)
BulkScorer
LRUQueryCache.CachingWrapperWeight. bulkScorer(LeafReaderContext context)
BulkScorer
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, java.lang.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)
Explanation
BooleanWeight. explain(LeafReaderContext context, int doc)
Explanation
ConstantScoreWeight. explain(LeafReaderContext context, int doc)
Explanation
DisjunctionMaxQuery.DisjunctionMaxWeight. explain(LeafReaderContext context, int doc)
Explain the score we computed for docExplanation
DoubleValuesSource.ConstantValuesSource. explain(LeafReaderContext ctx, int docId, Explanation scoreExplanation)
Explanation
DoubleValuesSource. explain(LeafReaderContext ctx, int docId, Explanation scoreExplanation)
An explanation of the value for the named document.Explanation
DoubleValuesSource.FieldValuesSource. explain(LeafReaderContext ctx, int docId, Explanation scoreExplanation)
Explanation
DoubleValuesSource.WeightDoubleValuesSource. explain(LeafReaderContext ctx, int docId, Explanation scoreExplanation)
Explanation
FilterWeight. explain(LeafReaderContext context, int doc)
Explanation
IndriAndWeight. explain(LeafReaderContext context, int doc)
Explanation
PhraseWeight. explain(LeafReaderContext context, int doc)
Explanation
SynonymQuery.SynonymWeight. explain(LeafReaderContext context, int doc)
Explanation
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, java.lang.String field, java.util.List<Term> terms)
Create aDisjunctionMatchesIterator
over a list of terms(package private) static MatchesIterator
DisjunctionMatchesIterator. fromTermsEnum(LeafReaderContext context, int doc, Query query, java.lang.String field, BytesRefIterator terms)
Create aDisjunctionMatchesIterator
over a list of terms extracted from aBytesRefIterator
protected BinaryDocValues
FieldComparator.TermValComparator. getBinaryDocValues(LeafReaderContext context, java.lang.String field)
Retrieves the BinaryDocValues for the field in this segmentLeafFieldComparator[]
FieldValueHitQueue. getComparators(LeafReaderContext context)
private IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount
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.private IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount
IndexSortSortedNumericDocValuesRangeQuery. getDocIdSetIteratorOrNull(LeafReaderContext context)
private IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount
IndexSortSortedNumericDocValuesRangeQuery. getDocIdSetIteratorOrNullFromBkd(LeafReaderContext context, DocIdSetIterator delegate)
LeafCollector
CachingCollector.NoScoreCachingCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
Collector. getLeafCollector(LeafReaderContext context)
Create a newcollector
to collect the given context.LeafCollector
FilterCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
MultiCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
PositiveScoresOnlyCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
SimpleCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
TimeLimitingCollector. getLeafCollector(LeafReaderContext context)
Deprecated.LeafCollector
TopFieldCollector.PagingFieldCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
TopFieldCollector.SimpleFieldCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
TopScoreDocCollector.PagingTopScoreDocCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
TopScoreDocCollector.SimpleTopScoreDocCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
TotalHitCountCollector. getLeafCollector(LeafReaderContext context)
abstract LeafFieldComparator
FieldComparator. getLeafComparator(LeafReaderContext context)
Get a per-segmentLeafFieldComparator
to collect the givenLeafReaderContext
.LeafFieldComparator
FieldComparator.RelevanceComparator. getLeafComparator(LeafReaderContext context)
LeafFieldComparator
FieldComparator.TermValComparator. getLeafComparator(LeafReaderContext context)
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)
VectorScorer
ByteVectorSimilarityValuesSource. getScorer(LeafReaderContext ctx)
VectorScorer
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 contextDoubleValues
DoubleValuesSource.ConstantValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
DoubleValues
DoubleValuesSource.FieldValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
abstract DoubleValues
DoubleValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
Returns aDoubleValues
instance for the passed-in LeafReaderContext and scoresLongValues
DoubleValuesSource.LongDoubleValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
DoubleValues
DoubleValuesSource.QueryDoubleValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
DoubleValues
DoubleValuesSource.WeightDoubleValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
LongValues
LongValuesSource.ConstantLongValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
DoubleValues
LongValuesSource.DoubleLongValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
LongValues
LongValuesSource.FieldValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
abstract LongValues
LongValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)
Returns aLongValues
instance for the passed-in LeafReaderContext and scoresDoubleValues
VectorSimilarityValuesSource. 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.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)
Matches
AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight. matches(LeafReaderContext context, int doc)
Matches
BooleanWeight. matches(LeafReaderContext context, int doc)
Matches
DisjunctionMaxQuery.DisjunctionMaxWeight. matches(LeafReaderContext context, int doc)
Matches
FilterWeight. matches(LeafReaderContext context, int doc)
Matches
LRUQueryCache.CachingWrapperWeight. matches(LeafReaderContext context, int doc)
Matches
PhraseWeight. matches(LeafReaderContext context, int doc)
Matches
SynonymQuery.SynonymWeight. matches(LeafReaderContext context, int doc)
Matches
TermQuery.TermWeight. matches(LeafReaderContext context, int doc)
Matches
Weight. matches(LeafReaderContext context, int doc)
ReturnsMatches
for a specific document, ornull
if the document does not match the parent queryKnnCollector
TimeLimitingKnnCollectorManager. 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)
private AbstractMultiTermQueryConstantScoreWrapper.WeightOrDocIdSetIterator
AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight. rewrite(LeafReaderContext context, Terms terms)
protected abstract AbstractMultiTermQueryConstantScoreWrapper.WeightOrDocIdSetIterator
AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight. rewriteInner(LeafReaderContext context, int fieldDocCount, Terms terms, TermsEnum termsEnum, java.util.List<AbstractMultiTermQueryConstantScoreWrapper.TermAndState> collectedTerms)
Rewrite the query as either aWeight
or aDocIdSetIterator
wrapped in aAbstractMultiTermQueryConstantScoreWrapper.WeightOrDocIdSetIterator
.Scorer
AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight. scorer(LeafReaderContext context)
Scorer
BooleanWeight. scorer(LeafReaderContext context)
Scorer
DisjunctionMaxQuery.DisjunctionMaxWeight. scorer(LeafReaderContext context)
Scorer
FilterWeight. scorer(LeafReaderContext context)
Scorer
IndriAndWeight. scorer(LeafReaderContext context)
Scorer
LRUQueryCache.CachingWrapperWeight. scorer(LeafReaderContext context)
Scorer
PhraseWeight. scorer(LeafReaderContext context)
Scorer
SynonymQuery.SynonymWeight. scorer(LeafReaderContext context)
Scorer
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.ScorerSupplier
AbstractMultiTermQueryConstantScoreWrapper.RewritingWeight. scorerSupplier(LeafReaderContext context)
ScorerSupplier
BooleanWeight. scorerSupplier(LeafReaderContext context)
ScorerSupplier
DisjunctionMaxQuery.DisjunctionMaxWeight. scorerSupplier(LeafReaderContext context)
ScorerSupplier
LRUQueryCache.CachingWrapperWeight. scorerSupplier(LeafReaderContext context)
ScorerSupplier
TermQuery.TermWeight. scorerSupplier(LeafReaderContext context)
ScorerSupplier
Weight. scorerSupplier(LeafReaderContext context)
Optional method.private TopDocs
AbstractKnnVectorQuery. searchLeaf(LeafReaderContext ctx, Weight filterWeight, TimeLimitingKnnCollectorManager timeLimitingKnnCollectorManager)
void
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, java.lang.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, java.lang.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 LeafReaderContext Modifier and Type Method Description protected void
IndexSearcher. search(java.util.List<LeafReaderContext> leaves, Weight weight, Collector collector)
Lower-level search API.protected IndexSearcher.LeafSlice[]
IndexSearcher. slices(java.util.List<LeafReaderContext> leaves)
Expert: Creates an array of leaf slices each holding a subset of the given leaves.static IndexSearcher.LeafSlice[]
IndexSearcher. slices(java.util.List<LeafReaderContext> leaves, int maxDocsPerSlice, int maxSegmentsPerSlice)
Static method to segregate LeafReaderContexts amongst multiple slicesConstructors in org.apache.lucene.search with parameters of type LeafReaderContext Constructor Description TopFieldLeafCollector(FieldValueHitQueue<FieldValueHitQueue.Entry> queue, Sort sort, LeafReaderContext context)
Constructor parameters in org.apache.lucene.search with type arguments of type LeafReaderContext Constructor Description CachingLeafSlicesSupplier(java.util.function.Function<java.util.List<LeafReaderContext>,IndexSearcher.LeafSlice[]> provider, java.util.List<LeafReaderContext> leaves)
CachingLeafSlicesSupplier(java.util.function.Function<java.util.List<LeafReaderContext>,IndexSearcher.LeafSlice[]> provider, java.util.List<LeafReaderContext> leaves)
LeafSlice(java.util.List<LeafReaderContext> leavesList)
LRUQueryCache(int maxSize, long maxRamBytesUsed, java.util.function.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 LeafReaderContext Modifier and Type Field Description private LeafReaderContext
NumericComparator.NumericLeafComparator. context
private LeafReaderContext
TermOrdValComparator.CompetitiveIterator. context
Methods in org.apache.lucene.search.comparators with parameters of type LeafReaderContext Modifier and Type Method Description LeafFieldComparator
DocComparator. getLeafComparator(LeafReaderContext context)
LeafFieldComparator
DoubleComparator. getLeafComparator(LeafReaderContext context)
LeafFieldComparator
FloatComparator. getLeafComparator(LeafReaderContext context)
LeafFieldComparator
IntComparator. getLeafComparator(LeafReaderContext context)
LeafFieldComparator
LongComparator. getLeafComparator(LeafReaderContext context)
LeafFieldComparator
TermOrdValComparator. getLeafComparator(LeafReaderContext context)
protected NumericDocValues
NumericComparator.NumericLeafComparator. getNumericDocValues(LeafReaderContext context, java.lang.String field)
Retrieves the NumericDocValues for the field in this segmentprotected SortedDocValues
TermOrdValComparator. getSortedDocValues(LeafReaderContext context, java.lang.String field)
Retrieves the SortedDocValues for the field in this segmentConstructors in org.apache.lucene.search.comparators with parameters of type LeafReaderContext Constructor Description CompetitiveIterator(LeafReaderContext context, java.lang.String field, boolean dense, TermsEnum docValuesTerms)
DocLeafComparator(LeafReaderContext context)
DoubleLeafComparator(LeafReaderContext context)
FloatLeafComparator(LeafReaderContext context)
IntLeafComparator(LeafReaderContext context)
LongLeafComparator(LeafReaderContext context)
NumericLeafComparator(LeafReaderContext context)
TermOrdValLeafComparator(LeafReaderContext context, SortedDocValues values)
-
Uses of LeafReaderContext in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as LeafReaderContext Modifier and Type Field Description protected 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 LeafReaderContext Modifier and Type Method Description protected 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)
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 LeafReaderContext Constructor Description 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 LeafReaderContext Modifier and Type Method Description protected LeafReaderContext
WeightedSpanTermExtractor. getLeafContext()
-
Uses of LeafReaderContext in org.apache.lucene.search.join
Methods in org.apache.lucene.search.join with parameters of type LeafReaderContext Modifier and Type Method Description protected TopDocs
DiversifyingChildrenByteKnnVectorQuery. approximateSearch(LeafReaderContext context, Bits acceptDocs, int visitedLimit, KnnCollectorManager knnCollectorManager)
protected TopDocs
DiversifyingChildrenFloatKnnVectorQuery. approximateSearch(LeafReaderContext context, Bits acceptDocs, int visitedLimit, KnnCollectorManager knnCollectorManager)
protected 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)
Explanation
GlobalOrdinalsQuery.W. explain(LeafReaderContext context, int doc)
Explanation
GlobalOrdinalsWithScoreQuery.W. explain(LeafReaderContext context, int doc)
Explanation
ToChildBlockJoinQuery.ToChildBlockJoinWeight. explain(LeafReaderContext context, int doc)
Explanation
ToParentBlockJoinQuery.BlockJoinScorer. explain(LeafReaderContext context, Weight childWeight, ScoreMode scoreMode)
Explanation
ToParentBlockJoinQuery.BlockJoinWeight. explain(LeafReaderContext context, int doc)
BitSet
BitSetProducer. getBitSet(LeafReaderContext context)
Produce aBitSet
matching the expected documents on the given segment.BitSet
QueryBitSetProducer. getBitSet(LeafReaderContext context)
LeafCollector
GlobalOrdinalsCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
GlobalOrdinalsWithScoreCollector. getLeafCollector(LeafReaderContext context)
LeafCollector
GlobalOrdinalsWithScoreCollector.NoScore. getLeafCollector(LeafReaderContext context)
boolean
GlobalOrdinalsQuery.W. isCacheable(LeafReaderContext ctx)
boolean
GlobalOrdinalsWithScoreQuery.W. isCacheable(LeafReaderContext ctx)
Matches
ToParentBlockJoinQuery.BlockJoinWeight. matches(LeafReaderContext context, int doc)
KnnCollector
DiversifyingNearestChildrenKnnCollectorManager. newCollector(int visitedLimit, LeafReaderContext context)
Return a newDiversifyingNearestChildrenKnnCollector
instance.Scorer
GlobalOrdinalsQuery.W. scorer(LeafReaderContext context)
Scorer
GlobalOrdinalsWithScoreQuery.W. scorer(LeafReaderContext context)
Scorer
ToChildBlockJoinQuery.ToChildBlockJoinWeight. scorer(LeafReaderContext readerContext)
Scorer
ToParentBlockJoinQuery.BlockJoinWeight. scorer(LeafReaderContext context)
ScorerSupplier
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 LeafReaderContext Modifier and Type Method Description KnnCollector
KnnCollectorManager. newCollector(int visitedLimit, LeafReaderContext context)
Return a newKnnCollector
instance.KnnCollector
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 LeafReaderContext Modifier and Type Field Description private java.util.List<LeafReaderContext>
MatchRegionRetriever. leaves
Methods in org.apache.lucene.search.matchhighlight with parameters of type LeafReaderContext Modifier and Type Method Description void
MatchRegionRetriever. highlightDocument(LeafReaderContext leafReaderContext, int contextDocId, MatchRegionRetriever.FieldValueProvider doc, java.util.function.Predicate<java.lang.String> acceptField, java.util.Map<java.lang.String,java.util.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 LeafReaderContext Modifier and Type Method Description private boolean
MatchRegionRetriever. checkOrderConsistency(java.util.List<LeafReaderContext> leaves)
Constructors in org.apache.lucene.search.matchhighlight with parameters of type LeafReaderContext Constructor Description DocumentFieldValueProvider(LeafReaderContext currentContext, int docId, java.util.Set<java.lang.String> preloadFields)
-
Uses of LeafReaderContext in org.apache.lucene.search.suggest
Fields in org.apache.lucene.search.suggest with type parameters of type LeafReaderContext Modifier and Type Field Description private java.util.List<LeafReaderContext>
DocumentValueSourceDictionary.DocumentValueSourceInputIterator. leaves
leaves of the readerMethods in org.apache.lucene.search.suggest with parameters of type LeafReaderContext Modifier and Type Method Description abstract 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 LeafReaderContext Modifier and Type Method Description BulkScorer
CompletionWeight. bulkScorer(LeafReaderContext context)
protected void
TopSuggestDocsCollector. doSetNextReader(LeafReaderContext context)
Explanation
CompletionWeight. explain(LeafReaderContext context, int doc)
boolean
CompletionWeight. isCacheable(LeafReaderContext ctx)
This object can be cachedScorer
CompletionWeight. scorer(LeafReaderContext context)
-
Uses of LeafReaderContext in org.apache.lucene.spatial3d
Methods in org.apache.lucene.spatial3d with parameters of type LeafReaderContext Modifier and Type Method Description LeafFieldComparator
Geo3DPointDistanceComparator. getLeafComparator(LeafReaderContext context)
LeafFieldComparator
Geo3DPointOutsideDistanceComparator. getLeafComparator(LeafReaderContext context)
-