Package | Description |
---|---|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.index |
Code to maintain and access indices.
|
org.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.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
Grouping.
|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
org.apache.lucene.search.intervals |
Intervals queries
|
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
org.apache.lucene.search.spans |
The calculus of spans.
|
Modifier and Type | Method and Description |
---|---|
LeafFieldComparator |
LatLonPointDistanceComparator.getLeafComparator(LeafReaderContext context) |
Modifier and Type | Field and Description |
---|---|
private LeafReaderContext |
LeafReader.readerContext |
Modifier and Type | Field and Description |
---|---|
private java.util.List<LeafReaderContext> |
CompositeReaderContext.leaves |
private java.util.List<LeafReaderContext> |
CompositeReaderContext.Builder.leaves |
private java.util.List<LeafReaderContext> |
LeafReaderContext.leaves |
Modifier and Type | Method and Description |
---|---|
LeafReaderContext |
LeafReader.getContext() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<LeafReaderContext> |
IndexReaderContext.leaves()
Returns the context's leaves if this context is a top-level context.
|
java.util.List<LeafReaderContext> |
CompositeReaderContext.leaves() |
java.util.List<LeafReaderContext> |
LeafReaderContext.leaves() |
java.util.List<LeafReaderContext> |
IndexReader.leaves()
Returns the reader's leaves, or itself if this reader is atomic.
|
Modifier and Type | Method and Description |
---|---|
TermState |
TermStates.get(LeafReaderContext ctx)
|
static boolean |
DocValues.isCacheable(LeafReaderContext ctx,
java.lang.String... fields)
Returns
true if the specified docvalues fields have not been updated |
private static TermsEnum |
TermStates.loadTermsEnum(LeafReaderContext ctx,
Term term) |
Modifier and Type | Method and Description |
---|---|
static int |
ReaderUtil.subIndex(int n,
java.util.List<LeafReaderContext> leaves)
Returns index of the searcher/reader for document
n in the
array used to construct this searcher/reader. |
Constructor and Description |
---|
DocumentFilteredLeafIndexReader(LeafReaderContext context,
Weight preserveWeight,
boolean negateFilter) |
Constructor and Description |
---|
CompositeReaderContext(CompositeReaderContext parent,
CompositeReader reader,
int ordInParent,
int docbaseInParent,
java.util.List<IndexReaderContext> children,
java.util.List<LeafReaderContext> leaves) |
CompositeReaderContext(CompositeReader reader,
java.util.List<IndexReaderContext> children,
java.util.List<LeafReaderContext> leaves)
Creates a
CompositeReaderContext for top-level readers with parent set to null |
Modifier and Type | Method and Description |
---|---|
void |
CommonTermsQuery.collectTermStates(IndexReader reader,
java.util.List<LeafReaderContext> leaves,
TermStates[] contextArray,
Term[] queryTerms) |
Modifier and Type | Method and Description |
---|---|
void |
ValueSource.ValueSourceComparator.doSetNextReader(LeafReaderContext context) |
Explanation |
FunctionRangeQuery.FunctionRangeWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
FunctionScoreQuery.FunctionScoreWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
FunctionQuery.FunctionWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
ValueSource.WrappedDoubleValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation) |
Explanation |
FunctionScoreQuery.MultiplicativeBoostValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation) |
Explanation |
FunctionScoreQuery.QueryBoostValuesSource.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 a
Scorer that matches documents with values between the specified range,
and that which produces scores equal to FunctionValues.floatVal(int) . |
ValueSourceScorer |
FunctionValues.getScorer(Weight weight,
LeafReaderContext readerContext)
Yields a
Scorer that matches all documents,
and that which produces scores equal to FunctionValues.floatVal(int) . |
LongValues |
ValueSource.WrappedLongValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
DoubleValues |
ValueSource.WrappedDoubleValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
DoubleValues |
FunctionScoreQuery.MultiplicativeBoostValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
DoubleValues |
FunctionScoreQuery.QueryBoostValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
LongValues |
IndexReaderFunctions.SumTotalTermFreqValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
LongValues |
IndexReaderFunctions.NoCacheConstantLongValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
DoubleValues |
IndexReaderFunctions.TermFreqDoubleValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
DoubleValues |
IndexReaderFunctions.IndexReaderDoubleValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
DoubleValues |
IndexReaderFunctions.NoCacheConstantDoubleValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
abstract FunctionValues |
ValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext)
Gets the values for this reader and the context that was previously
passed to createWeight().
|
FunctionValues |
ValueSource.FromDoubleValuesSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
boolean |
FunctionRangeQuery.FunctionRangeWeight.isCacheable(LeafReaderContext ctx) |
boolean |
ValueSource.WrappedLongValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
ValueSource.WrappedDoubleValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
FunctionScoreQuery.FunctionScoreWeight.isCacheable(LeafReaderContext ctx) |
boolean |
FunctionScoreQuery.MultiplicativeBoostValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
FunctionScoreQuery.QueryBoostValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
IndexReaderFunctions.SumTotalTermFreqValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
IndexReaderFunctions.NoCacheConstantLongValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
IndexReaderFunctions.TermFreqDoubleValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
IndexReaderFunctions.IndexReaderDoubleValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
IndexReaderFunctions.NoCacheConstantDoubleValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
FunctionQuery.FunctionWeight.isCacheable(LeafReaderContext ctx) |
Matches |
FunctionScoreQuery.FunctionScoreWeight.matches(LeafReaderContext context,
int doc) |
ValueSourceScorer |
FunctionRangeQuery.FunctionRangeWeight.scorer(LeafReaderContext context) |
Scorer |
FunctionScoreQuery.FunctionScoreWeight.scorer(LeafReaderContext context) |
Scorer |
FunctionQuery.FunctionWeight.scorer(LeafReaderContext context) |
Constructor and Description |
---|
AllScorer(LeafReaderContext context,
FunctionQuery.FunctionWeight w,
float boost) |
ValueSourceScorer(Weight weight,
LeafReaderContext readerContext,
FunctionValues values) |
Modifier and Type | Method and Description |
---|---|
ValueSourceScorer |
LongDocValues.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 |
DocTermsIndexDocValues.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) |
Constructor and Description |
---|
DocTermsIndexDocValues(ValueSource vs,
LeafReaderContext context,
java.lang.String field) |
Modifier and Type | Field and Description |
---|---|
(package private) LeafReaderContext |
QueryDocValues.readerContext |
Modifier and Type | Method and Description |
---|---|
private ScaleFloatFunction.ScaleInfo |
ScaleFloatFunction.createScaleInfo(java.util.Map context,
LeafReaderContext readerContext) |
protected NumericDocValues |
MultiValuedDoubleFieldSource.getNumericDocValues(java.util.Map context,
LeafReaderContext readerContext) |
protected NumericDocValues |
FloatFieldSource.getNumericDocValues(java.util.Map context,
LeafReaderContext readerContext) |
protected NumericDocValues |
IntFieldSource.getNumericDocValues(java.util.Map context,
LeafReaderContext readerContext) |
protected NumericDocValues |
DoubleFieldSource.getNumericDocValues(java.util.Map context,
LeafReaderContext readerContext) |
protected NumericDocValues |
MultiValuedFloatFieldSource.getNumericDocValues(java.util.Map context,
LeafReaderContext readerContext) |
protected NumericDocValues |
MultiValuedIntFieldSource.getNumericDocValues(java.util.Map context,
LeafReaderContext readerContext) |
protected NumericDocValues |
MultiValuedLongFieldSource.getNumericDocValues(java.util.Map context,
LeafReaderContext readerContext) |
protected NumericDocValues |
LongFieldSource.getNumericDocValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
LiteralValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
SumTotalTermFreqValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
NumDocsValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
BytesRefFieldSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
SortedSetFieldSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
IfFunction.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
MultiFloatFunction.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
RangeMapFloatFunction.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
ComparisonBoolFunction.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
TotalTermFreqValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
DocFreqValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
MaxDocValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
FloatFieldSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
ConstValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
BoolDocValues |
SimpleBoolFunction.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
IDFValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
TFValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
LinearFloatFunction.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
VectorValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
ScaleFloatFunction.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
IntFieldSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
DoubleFieldSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
JoinDocFreqValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
DefFunction.getValues(java.util.Map fcontext,
LeafReaderContext readerContext) |
FunctionValues |
ReciprocalFloatFunction.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
TermFreqValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
BoolDocValues |
MultiBoolFunction.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
NormValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
SimpleFloatFunction.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
EnumFieldSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
DoubleConstValueSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
QueryValueSource.getValues(java.util.Map fcontext,
LeafReaderContext readerContext) |
FunctionValues |
LongFieldSource.getValues(java.util.Map context,
LeafReaderContext readerContext) |
FunctionValues |
DualFloatFunction.getValues(java.util.Map context,
LeafReaderContext readerContext) |
static FunctionValues[] |
MultiFunction.valsArr(java.util.List<ValueSource> sources,
java.util.Map fcontext,
LeafReaderContext readerContext) |
Constructor and Description |
---|
QueryDocValues(QueryValueSource vs,
LeafReaderContext readerContext,
java.util.Map fcontext) |
Modifier and Type | Method and 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) |
Modifier and Type | Field and Description |
---|---|
LeafReaderContext[] |
IndexSearcher.LeafSlice.leaves
The leaves that make up this slice.
|
protected LeafReaderContext |
TermCollectingRewrite.TermCollector.readerContext |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<LeafReaderContext> |
CachingCollector.NoScoreCachingCollector.contexts |
protected java.util.List<LeafReaderContext> |
IndexSearcher.leafContexts |
private java.util.function.Predicate<LeafReaderContext> |
LRUQueryCache.leavesToCache |
Modifier and Type | Method and Description |
---|---|
(package private) BulkScorer |
BooleanWeight.booleanScorer(LeafReaderContext context)
Try to build a boolean scorer for this weight.
|
BulkScorer |
Weight.bulkScorer(LeafReaderContext context)
Optional method, to return a
BulkScorer to
score the query and send hits to a Collector . |
BulkScorer |
LRUQueryCache.CachingWrapperWeight.bulkScorer(LeafReaderContext context) |
BulkScorer |
BooleanWeight.bulkScorer(LeafReaderContext context) |
private DocIdSet |
LRUQueryCache.CachingWrapperWeight.cache(LeafReaderContext context) |
protected void |
FieldComparator.NumericComparator.doSetNextReader(LeafReaderContext context) |
protected void |
SimpleCollector.doSetNextReader(LeafReaderContext context)
This method is called before collecting
context . |
protected abstract void |
SimpleFieldComparator.doSetNextReader(LeafReaderContext context)
This method is called before collecting
context . |
Explanation |
TermAutomatonQuery.TermAutomatonWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
BM25FQuery.BM25FWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
CoveringQuery.CoveringWeight.explain(LeafReaderContext context,
int doc) |
abstract Explanation |
Weight.explain(LeafReaderContext context,
int doc)
An explanation of the score computation for the named document.
|
Explanation |
FilterWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
SynonymQuery.SynonymWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
DisjunctionMaxQuery.DisjunctionMaxWeight.explain(LeafReaderContext context,
int doc)
Explain the score we computed for doc
|
Explanation |
ConstantScoreWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
PhraseWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
TermQuery.TermWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
BooleanWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
DoubleValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation)
An explanation of the value for the named document.
|
Explanation |
DoubleValuesSource.ConstantValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation) |
Explanation |
DoubleValuesSource.FieldValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation) |
Explanation |
DoubleValuesSource.WeightDoubleValuesSource.explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation) |
(package private) static MatchesIterator |
DisjunctionMatchesIterator.fromTerms(LeafReaderContext context,
int doc,
Query query,
java.lang.String field,
java.util.List<Term> terms)
Create a
DisjunctionMatchesIterator over a list of terms
Only terms that have at least one match in the given document will be included |
(package private) static MatchesIterator |
DisjunctionMatchesIterator.fromTermsEnum(LeafReaderContext context,
int doc,
Query query,
java.lang.String field,
BytesRefIterator terms)
Create a
DisjunctionMatchesIterator over a list of terms extracted from a BytesRefIterator
Only terms that have at least one match in the given document will be included |
(package private) DocIdSet |
LRUQueryCache.get(Query key,
LeafReaderContext context,
IndexReader.CacheHelper cacheHelper) |
protected BinaryDocValues |
FieldComparator.TermValComparator.getBinaryDocValues(LeafReaderContext context,
java.lang.String field)
Retrieves the BinaryDocValues for the field in this segment
|
LeafFieldComparator[] |
FieldValueHitQueue.getComparators(LeafReaderContext context) |
protected abstract NumericDocValues |
DiversifiedTopDocsCollector.getKeys(LeafReaderContext context)
Get a source of values used for grouping keys
|
LeafCollector |
MultiCollectorManager.Collectors.getLeafCollector(LeafReaderContext context) |
LeafCollector |
TopScoreDocCollector.SimpleTopScoreDocCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
TopScoreDocCollector.PagingTopScoreDocCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
CachingCollector.NoScoreCachingCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
Collector.getLeafCollector(LeafReaderContext context)
Create a new
collector to collect the given context. |
LeafCollector |
PositiveScoresOnlyCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
MultiCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
TimeLimitingCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
SimpleCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
TopFieldCollector.SimpleFieldCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
TopFieldCollector.PagingFieldCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
FilterCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
DocValuesStatsCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
DiversifiedTopDocsCollector.getLeafCollector(LeafReaderContext context) |
abstract LeafFieldComparator |
FieldComparator.getLeafComparator(LeafReaderContext context)
Get a per-segment
LeafFieldComparator to collect the given
LeafReaderContext . |
LeafFieldComparator |
FieldComparator.RelevanceComparator.getLeafComparator(LeafReaderContext context) |
LeafFieldComparator |
FieldComparator.DocComparator.getLeafComparator(LeafReaderContext context) |
LeafFieldComparator |
FieldComparator.TermOrdValComparator.getLeafComparator(LeafReaderContext context) |
LeafFieldComparator |
FieldComparator.TermValComparator.getLeafComparator(LeafReaderContext context) |
LeafFieldComparator |
SimpleFieldComparator.getLeafComparator(LeafReaderContext context) |
protected NumericDocValues |
FieldComparator.NumericComparator.getNumericDocValues(LeafReaderContext context,
java.lang.String field)
Retrieves the NumericDocValues for the field in this segment
|
protected abstract PhraseMatcher |
PhraseWeight.getPhraseMatcher(LeafReaderContext context,
boolean exposeOffsets) |
protected SortedDocValues |
FieldComparator.TermOrdValComparator.getSortedDocValues(LeafReaderContext context,
java.lang.String field)
Retrieves the SortedDocValues for the field in this segment
|
private TermsEnum |
TermQuery.TermWeight.getTermsEnum(LeafReaderContext context)
Returns a
TermsEnum positioned at this weights Term or null if
the term does not exist in the given context |
abstract DoubleValues |
DoubleValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores)
Returns a
DoubleValues instance for the passed-in LeafReaderContext and scores
If scores are not needed to calculate the values (ie returns false , callers
may safely pass null for the scores parameter. |
LongValues |
DoubleValuesSource.LongDoubleValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
DoubleValues |
DoubleValuesSource.ConstantValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
DoubleValues |
DoubleValuesSource.FieldValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
DoubleValues |
DoubleValuesSource.QueryDoubleValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
DoubleValues |
DoubleValuesSource.WeightDoubleValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
abstract LongValues |
LongValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores)
Returns a
LongValues instance for the passed-in LeafReaderContext and scores
If scores are not needed to calculate the values (ie returns false , callers
may safely pass null for the scores parameter. |
DoubleValues |
LongValuesSource.DoubleLongValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
LongValues |
LongValuesSource.ConstantLongValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
LongValues |
LongValuesSource.FieldValuesSource.getValues(LeafReaderContext ctx,
DoubleValues scores) |
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.SortedNumericDocValuesStats.init(LeafReaderContext context) |
protected boolean |
DocValuesStats.SortedDocValuesStats.init(LeafReaderContext context) |
protected boolean |
DocValuesStats.SortedSetDocValuesStats.init(LeafReaderContext context) |
boolean |
TermAutomatonQuery.TermAutomatonWeight.isCacheable(LeafReaderContext ctx) |
boolean |
BM25FQuery.BM25FWeight.isCacheable(LeafReaderContext ctx) |
boolean |
CoveringQuery.CoveringWeight.isCacheable(LeafReaderContext ctx) |
boolean |
DoubleValuesSource.LongDoubleValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
DoubleValuesSource.ConstantValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
DoubleValuesSource.FieldValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
DoubleValuesSource.QueryDoubleValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
DoubleValuesSource.WeightDoubleValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
FilterWeight.isCacheable(LeafReaderContext ctx) |
boolean |
SynonymQuery.SynonymWeight.isCacheable(LeafReaderContext ctx) |
boolean |
LRUQueryCache.CachingWrapperWeight.isCacheable(LeafReaderContext ctx) |
boolean |
SegmentCacheable.isCacheable(LeafReaderContext ctx) |
boolean |
DisjunctionMaxQuery.DisjunctionMaxWeight.isCacheable(LeafReaderContext ctx) |
boolean |
LongValuesSource.DoubleLongValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
LongValuesSource.ConstantLongValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
LongValuesSource.FieldValuesSource.isCacheable(LeafReaderContext ctx) |
boolean |
PhraseWeight.isCacheable(LeafReaderContext ctx) |
boolean |
TermQuery.TermWeight.isCacheable(LeafReaderContext ctx) |
boolean |
BooleanWeight.isCacheable(LeafReaderContext ctx) |
Matches |
BM25FQuery.BM25FWeight.matches(LeafReaderContext context,
int doc) |
Matches |
CoveringQuery.CoveringWeight.matches(LeafReaderContext context,
int doc) |
Matches |
Weight.matches(LeafReaderContext context,
int doc)
Returns
Matches for a specific document, or null if the document
does not match the parent query
A query match that contains no position information (for example, a Point or
DocValues query) will return MatchesUtils.MATCH_WITH_NO_TERMS |
Matches |
FilterWeight.matches(LeafReaderContext context,
int doc) |
Matches |
SynonymQuery.SynonymWeight.matches(LeafReaderContext context,
int doc) |
Matches |
LRUQueryCache.CachingWrapperWeight.matches(LeafReaderContext context,
int doc) |
Matches |
DisjunctionMaxQuery.DisjunctionMaxWeight.matches(LeafReaderContext context,
int doc) |
Matches |
PhraseWeight.matches(LeafReaderContext context,
int doc) |
Matches |
TermQuery.TermWeight.matches(LeafReaderContext context,
int doc) |
Matches |
BooleanWeight.matches(LeafReaderContext context,
int doc) |
(package private) BulkScorer |
BooleanWeight.optionalBulkScorer(LeafReaderContext context) |
(package private) void |
LRUQueryCache.putIfAbsent(Query query,
LeafReaderContext context,
DocIdSet set,
IndexReader.CacheHelper cacheHelper) |
private BulkScorer |
BooleanWeight.requiredBulkScorer(LeafReaderContext context) |
Scorer |
TermAutomatonQuery.TermAutomatonWeight.scorer(LeafReaderContext context) |
Scorer |
BM25FQuery.BM25FWeight.scorer(LeafReaderContext context) |
Scorer |
CoveringQuery.CoveringWeight.scorer(LeafReaderContext context) |
abstract Scorer |
Weight.scorer(LeafReaderContext context)
Returns a
Scorer which can iterate in order over all matching
documents and assign them a score. |
Scorer |
FilterWeight.scorer(LeafReaderContext context) |
Scorer |
SynonymQuery.SynonymWeight.scorer(LeafReaderContext context) |
Scorer |
LRUQueryCache.CachingWrapperWeight.scorer(LeafReaderContext context) |
Scorer |
DisjunctionMaxQuery.DisjunctionMaxWeight.scorer(LeafReaderContext context)
Create the scorer used to score our associated DisjunctionMaxQuery
|
Scorer |
PhraseWeight.scorer(LeafReaderContext context) |
Scorer |
TermQuery.TermWeight.scorer(LeafReaderContext context) |
Scorer |
BooleanWeight.scorer(LeafReaderContext context) |
ScorerSupplier |
Weight.scorerSupplier(LeafReaderContext context)
Optional method.
|
ScorerSupplier |
LRUQueryCache.CachingWrapperWeight.scorerSupplier(LeafReaderContext context) |
ScorerSupplier |
BooleanWeight.scorerSupplier(LeafReaderContext context) |
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.
|
boolean |
LRUQueryCache.MinSegmentSizePredicate.test(LeafReaderContext context) |
Modifier and Type | Method and 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.
|
Constructor and Description |
---|
LeafCollectors(LeafReaderContext context) |
LeafSlice(LeafReaderContext... leaves) |
Constructor and Description |
---|
LRUQueryCache(int maxSize,
long maxRamBytesUsed,
java.util.function.Predicate<LeafReaderContext> leavesToCache)
Expert: Create a new instance that will cache at most
maxSize
queries with at most maxRamBytesUsed bytes of memory, only on
leaves that satisfy leavesToCache . |
Modifier and Type | Field and Description |
---|---|
protected LeafReaderContext |
AllGroupHeadsCollector.context |
private LeafReaderContext |
BlockGroupingCollector.currentReaderContext |
(package private) LeafReaderContext |
BlockGroupingCollector.OneGroup.readerContext |
Modifier and Type | Method and Description |
---|---|
protected void |
AllGroupsCollector.doSetNextReader(LeafReaderContext context) |
protected void |
FirstPassGroupingCollector.doSetNextReader(LeafReaderContext readerContext) |
protected void |
SecondPassGroupingCollector.doSetNextReader(LeafReaderContext readerContext) |
protected void |
TermGroupFacetCollector.SV.doSetNextReader(LeafReaderContext context) |
protected void |
TermGroupFacetCollector.MV.doSetNextReader(LeafReaderContext context) |
protected void |
AllGroupHeadsCollector.doSetNextReader(LeafReaderContext context) |
protected void |
BlockGroupingCollector.doSetNextReader(LeafReaderContext readerContext) |
protected void |
DistinctValuesCollector.ValuesCollector.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 scorer
|
protected AllGroupHeadsCollector.GroupHead<T> |
AllGroupHeadsCollector.SortingGroupHeadsCollector.newGroupHead(int doc,
T value,
LeafReaderContext ctx,
Scorable scorer) |
protected AllGroupHeadsCollector.GroupHead<T> |
AllGroupHeadsCollector.ScoringGroupHeadsCollector.newGroupHead(int doc,
T value,
LeafReaderContext context,
Scorable scorer) |
void |
TermGroupSelector.setNextReader(LeafReaderContext readerContext) |
void |
ValueSourceGroupSelector.setNextReader(LeafReaderContext readerContext) |
protected void |
AllGroupHeadsCollector.GroupHead.setNextReader(LeafReaderContext ctx)
Called for each segment
|
void |
AllGroupHeadsCollector.SortingGroupHead.setNextReader(LeafReaderContext ctx) |
abstract void |
GroupSelector.setNextReader(LeafReaderContext readerContext)
Set the LeafReaderContext
|
void |
GroupReducer.setNextReader(LeafReaderContext ctx)
Called when the parent
SecondPassGroupingCollector moves to a new segment |
Constructor and Description |
---|
SortingGroupHead(Sort sort,
T groupValue,
int doc,
LeafReaderContext context,
Scorable scorer) |
Modifier and Type | Method and Description |
---|---|
protected LeafReaderContext |
WeightedSpanTermExtractor.getLeafContext() |
Modifier and Type | Method and Description |
---|---|
Explanation |
IntervalQuery.IntervalWeight.explain(LeafReaderContext context,
int doc) |
IntervalIterator |
MinimumShouldMatchIntervalsSource.intervals(java.lang.String field,
LeafReaderContext ctx) |
IntervalIterator |
FilteredIntervalsSource.intervals(java.lang.String field,
LeafReaderContext ctx) |
abstract IntervalIterator |
IntervalsSource.intervals(java.lang.String field,
LeafReaderContext ctx)
Create an
IntervalIterator exposing the minimum intervals defined by this IntervalsSource
Returns null if no intervals for this field exist in this segment |
IntervalIterator |
ExtendedIntervalsSource.intervals(java.lang.String field,
LeafReaderContext ctx) |
IntervalIterator |
PayloadFilteredTermIntervalsSource.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 |
OffsetIntervalsSource.intervals(java.lang.String field,
LeafReaderContext ctx) |
IntervalIterator |
MultiTermIntervalsSource.intervals(java.lang.String field,
LeafReaderContext ctx) |
IntervalIterator |
ConjunctionIntervalsSource.intervals(java.lang.String field,
LeafReaderContext ctx) |
IntervalIterator |
FixedFieldIntervalsSource.intervals(java.lang.String field,
LeafReaderContext ctx) |
IntervalIterator |
TermIntervalsSource.intervals(java.lang.String field,
LeafReaderContext ctx) |
boolean |
IntervalQuery.IntervalWeight.isCacheable(LeafReaderContext ctx) |
Matches |
IntervalQuery.IntervalWeight.matches(LeafReaderContext context,
int doc) |
MatchesIterator |
MinimumShouldMatchIntervalsSource.matches(java.lang.String field,
LeafReaderContext ctx,
int doc) |
MatchesIterator |
FilteredIntervalsSource.matches(java.lang.String field,
LeafReaderContext ctx,
int doc) |
abstract MatchesIterator |
IntervalsSource.matches(java.lang.String field,
LeafReaderContext ctx,
int doc)
Return a
MatchesIterator over the intervals defined by this IntervalsSource for a
given document and field
Returns null if no intervals exist in the given document and field |
MatchesIterator |
ExtendedIntervalsSource.matches(java.lang.String field,
LeafReaderContext ctx,
int doc) |
MatchesIterator |
PayloadFilteredTermIntervalsSource.matches(java.lang.String field,
LeafReaderContext ctx,
int doc) |
MatchesIterator |
DifferenceIntervalsSource.matches(java.lang.String field,
LeafReaderContext ctx,
int doc) |
MatchesIterator |
DisjunctionIntervalsSource.matches(java.lang.String field,
LeafReaderContext ctx,
int doc) |
MatchesIterator |
OffsetIntervalsSource.matches(java.lang.String field,
LeafReaderContext ctx,
int doc) |
MatchesIterator |
MultiTermIntervalsSource.matches(java.lang.String field,
LeafReaderContext ctx,
int doc) |
MatchesIterator |
ConjunctionIntervalsSource.matches(java.lang.String field,
LeafReaderContext ctx,
int doc) |
MatchesIterator |
FixedFieldIntervalsSource.matches(java.lang.String field,
LeafReaderContext ctx,
int doc) |
MatchesIterator |
TermIntervalsSource.matches(java.lang.String field,
LeafReaderContext ctx,
int doc) |
Scorer |
IntervalQuery.IntervalWeight.scorer(LeafReaderContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
DocValuesTermsCollector.doSetNextReader(LeafReaderContext context) |
Explanation |
GlobalOrdinalsQuery.W.explain(LeafReaderContext context,
int doc) |
Explanation |
ToParentBlockJoinQuery.BlockJoinWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
ToChildBlockJoinQuery.ToChildBlockJoinWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
GlobalOrdinalsWithScoreQuery.W.explain(LeafReaderContext context,
int doc) |
Explanation |
ToParentBlockJoinQuery.BlockJoinScorer.explain(LeafReaderContext context,
Weight childWeight) |
BitSet |
QueryBitSetProducer.getBitSet(LeafReaderContext context) |
BitSet |
BitSetProducer.getBitSet(LeafReaderContext context)
Produce a
BitSet matching the expected documents on the given
segment. |
LeafCollector |
GlobalOrdinalsCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
GlobalOrdinalsWithScoreCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
GlobalOrdinalsWithScoreCollector.NoScore.getLeafCollector(LeafReaderContext context) |
boolean |
GlobalOrdinalsQuery.W.isCacheable(LeafReaderContext ctx) |
Matches |
ToParentBlockJoinQuery.BlockJoinWeight.matches(LeafReaderContext context,
int doc) |
Scorer |
GlobalOrdinalsQuery.W.scorer(LeafReaderContext context) |
Scorer |
ToParentBlockJoinQuery.BlockJoinWeight.scorer(LeafReaderContext context) |
Scorer |
ToChildBlockJoinQuery.ToChildBlockJoinWeight.scorer(LeafReaderContext readerContext) |
Scorer |
GlobalOrdinalsWithScoreQuery.W.scorer(LeafReaderContext context) |
ScorerSupplier |
ToParentBlockJoinQuery.BlockJoinWeight.scorerSupplier(LeafReaderContext context) |
Modifier and Type | Method and Description |
---|---|
Explanation |
SpanWeight.explain(LeafReaderContext context,
int doc) |
LeafSimScorer |
SpanWeight.getSimScorer(LeafReaderContext context)
Return a LeafSimScorer for this context
|
Spans |
SpanWithinQuery.SpanWithinWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings)
Return spans from
little that are contained in a spans from big . |
Spans |
SpanTermQuery.SpanTermWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings) |
Spans |
SpanContainingQuery.SpanContainingWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings)
Return spans from
big that contain at least one spans from little . |
Spans |
SpanNearQuery.SpanNearWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings) |
Spans |
SpanNearQuery.SpanGapQuery.SpanGapWeight.getSpans(LeafReaderContext ctx,
SpanWeight.Postings requiredPostings) |
Spans |
SpanNotQuery.SpanNotWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings) |
Spans |
SpanPositionCheckQuery.SpanPositionCheckWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings) |
Spans |
SpanOrQuery.SpanOrWeight.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 Weight
|
boolean |
SpanWithinQuery.SpanWithinWeight.isCacheable(LeafReaderContext ctx) |
boolean |
SpanTermQuery.SpanTermWeight.isCacheable(LeafReaderContext ctx) |
boolean |
SpanContainingQuery.SpanContainingWeight.isCacheable(LeafReaderContext ctx) |
boolean |
SpanNearQuery.SpanNearWeight.isCacheable(LeafReaderContext ctx) |
boolean |
SpanNearQuery.SpanGapQuery.SpanGapWeight.isCacheable(LeafReaderContext ctx) |
boolean |
SpanNotQuery.SpanNotWeight.isCacheable(LeafReaderContext ctx) |
boolean |
SpanPositionCheckQuery.SpanPositionCheckWeight.isCacheable(LeafReaderContext ctx) |
boolean |
SpanOrQuery.SpanOrWeight.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) |