Uses of Class
org.apache.lucene.index.LeafReaderContext
-
Packages that use LeafReaderContext Package Description org.apache.lucene.index Code to maintain and access indices.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. -
-
Uses of LeafReaderContext in org.apache.lucene.index
Methods in org.apache.lucene.index that return LeafReaderContext Modifier and Type Method Description LeafReaderContextLeafReader. getContext()Methods in org.apache.lucene.index that return types with arguments of type LeafReaderContext Modifier and Type Method Description List<LeafReaderContext>CompositeReaderContext. leaves()List<LeafReaderContext>IndexReader. leaves()Returns the reader's leaves, or itself if this reader is atomic.abstract List<LeafReaderContext>IndexReaderContext. leaves()Returns the context's leaves if this context is a top-level context.List<LeafReaderContext>LeafReaderContext. leaves()Methods in org.apache.lucene.index with parameters of type LeafReaderContext Modifier and Type Method Description TermStateTermStates. get(LeafReaderContext ctx)static booleanDocValues. isCacheable(LeafReaderContext ctx, String... fields)Returnstrueif the specified docvalues fields have not been updatedMethod parameters in org.apache.lucene.index with type arguments of type LeafReaderContext Modifier and Type Method Description static intReaderUtil. subIndex(int n, List<LeafReaderContext> leaves)Returns index of the searcher/reader for documentnin the array used to construct this searcher/reader. -
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. leavesThe leaves that make up this slice.Fields in org.apache.lucene.search with type parameters of type LeafReaderContext Modifier and Type Field Description protected List<LeafReaderContext>IndexSearcher. leafContextsMethods in org.apache.lucene.search that return types with arguments of type LeafReaderContext Modifier and Type Method Description 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 TopDocsKnnByteVectorQuery. approximateSearch(LeafReaderContext context, Bits acceptDocs, int visitedLimit)protected TopDocsKnnFloatVectorQuery. approximateSearch(LeafReaderContext context, Bits acceptDocs, int visitedLimit)BulkScorerIndriAndWeight. bulkScorer(LeafReaderContext context)BulkScorerWeight. bulkScorer(LeafReaderContext context)Optional method, to return aBulkScorerto score the query and send hits to aCollector.intWeight. count(LeafReaderContext context)Counts the number of live documents that match a givenWeight.parentQueryin a leaf.static MatchesIteratorMatchesUtils. disjunction(LeafReaderContext context, int doc, Query query, String field, BytesRefIterator terms)Create a MatchesIterator that is a disjunction over a list of terms extracted from aBytesRefIterator.protected voidSimpleCollector. doSetNextReader(LeafReaderContext context)This method is called before collectingcontext.protected abstract voidSimpleFieldComparator. doSetNextReader(LeafReaderContext context)This method is called before collectingcontext.ExplanationConstantScoreWeight. explain(LeafReaderContext context, int doc)ExplanationDisjunctionMaxQuery.DisjunctionMaxWeight. explain(LeafReaderContext context, int doc)Explain the score we computed for docExplanationDoubleValuesSource. explain(LeafReaderContext ctx, int docId, Explanation scoreExplanation)An explanation of the value for the named document.ExplanationFilterWeight. explain(LeafReaderContext context, int doc)ExplanationIndriAndWeight. explain(LeafReaderContext context, int doc)ExplanationPhraseWeight. explain(LeafReaderContext context, int doc)abstract ExplanationWeight. explain(LeafReaderContext context, int doc)An explanation of the score computation for the named document.protected BinaryDocValuesFieldComparator.TermValComparator. getBinaryDocValues(LeafReaderContext context, String field)Retrieves the BinaryDocValues for the field in this segmentLeafFieldComparator[]FieldValueHitQueue. getComparators(LeafReaderContext context)LeafCollectorCollector. getLeafCollector(LeafReaderContext context)Create a newcollectorto collect the given context.LeafCollectorFilterCollector. getLeafCollector(LeafReaderContext context)LeafCollectorMultiCollector. getLeafCollector(LeafReaderContext context)LeafCollectorPositiveScoresOnlyCollector. getLeafCollector(LeafReaderContext context)LeafCollectorSimpleCollector. getLeafCollector(LeafReaderContext context)LeafCollectorTimeLimitingCollector. getLeafCollector(LeafReaderContext context)LeafCollectorTotalHitCountCollector. getLeafCollector(LeafReaderContext context)abstract LeafFieldComparatorFieldComparator. getLeafComparator(LeafReaderContext context)Get a per-segmentLeafFieldComparatorto collect the givenLeafReaderContext.LeafFieldComparatorFieldComparator.RelevanceComparator. getLeafComparator(LeafReaderContext context)LeafFieldComparatorFieldComparator.TermValComparator. getLeafComparator(LeafReaderContext context)LeafFieldComparatorSimpleFieldComparator. getLeafComparator(LeafReaderContext context)protected abstract PhraseMatcherPhraseWeight. getPhraseMatcher(LeafReaderContext context, Similarity.SimScorer scorer, boolean exposeOffsets)abstract DoubleValuesDoubleValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)Returns aDoubleValuesinstance for the passed-in LeafReaderContext and scoresLongValuesLongValuesSource.ConstantLongValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)abstract LongValuesLongValuesSource. getValues(LeafReaderContext ctx, DoubleValues scores)Returns aLongValuesinstance for the passed-in LeafReaderContext and scoresbooleanDisjunctionMaxQuery.DisjunctionMaxWeight. isCacheable(LeafReaderContext ctx)booleanFilterWeight. isCacheable(LeafReaderContext ctx)booleanIndriAndWeight. isCacheable(LeafReaderContext ctx)booleanLongValuesSource.ConstantLongValuesSource. isCacheable(LeafReaderContext ctx)booleanPhraseWeight. isCacheable(LeafReaderContext ctx)booleanSegmentCacheable. isCacheable(LeafReaderContext ctx)MatchesDisjunctionMaxQuery.DisjunctionMaxWeight. matches(LeafReaderContext context, int doc)MatchesFilterWeight. matches(LeafReaderContext context, int doc)MatchesPhraseWeight. matches(LeafReaderContext context, int doc)MatchesWeight. matches(LeafReaderContext context, int doc)ReturnsMatchesfor a specific document, ornullif the document does not match the parent queryScorerDisjunctionMaxQuery.DisjunctionMaxWeight. scorer(LeafReaderContext context)ScorerFilterWeight. scorer(LeafReaderContext context)ScorerIndriAndWeight. scorer(LeafReaderContext context)ScorerPhraseWeight. scorer(LeafReaderContext context)abstract ScorerWeight. scorer(LeafReaderContext context)Returns aScorerwhich can iterate in order over all matching documents and assign them a score.ScorerSupplierDisjunctionMaxQuery.DisjunctionMaxWeight. scorerSupplier(LeafReaderContext context)ScorerSupplierWeight. scorerSupplier(LeafReaderContext context)Optional method.static DoubleValuesDoubleValuesSource. similarityToQueryVector(LeafReaderContext ctx, byte[] queryVector, String vectorField)Returns a DoubleValues instance for computing the vector similarity score per document against the byte query vectorstatic DoubleValuesDoubleValuesSource. similarityToQueryVector(LeafReaderContext ctx, float[] queryVector, String vectorField)Returns a DoubleValues instance for computing the vector similarity score per document against the float query vectorMethod parameters in org.apache.lucene.search with type arguments of type LeafReaderContext Modifier and Type Method Description protected voidIndexSearcher. search(List<LeafReaderContext> leaves, Weight weight, Collector collector)Lower-level search API.protected IndexSearcher.LeafSlice[]IndexSearcher. slices(List<LeafReaderContext> leaves)Expert: Creates an array of leaf slices each holding a subset of the given leaves.static IndexSearcher.LeafSlice[]IndexSearcher. slices(List<LeafReaderContext> leaves, int maxDocsPerSlice, int maxSegmentsPerSlice)Static method to segregate LeafReaderContexts amongst multiple slicesConstructor parameters in org.apache.lucene.search with type arguments of type LeafReaderContext Constructor Description LeafSlice(List<LeafReaderContext> leavesList)LRUQueryCache(int maxSize, long maxRamBytesUsed, Predicate<LeafReaderContext> leavesToCache, float skipCacheFactor)Expert: Create a new instance that will cache at mostmaxSizequeries with at mostmaxRamBytesUsedbytes of memory, only on leaves that satisfyleavesToCache. -
Uses of LeafReaderContext in org.apache.lucene.search.comparators
Methods in org.apache.lucene.search.comparators with parameters of type LeafReaderContext Modifier and Type Method Description LeafFieldComparatorDocComparator. getLeafComparator(LeafReaderContext context)LeafFieldComparatorDoubleComparator. getLeafComparator(LeafReaderContext context)LeafFieldComparatorFloatComparator. getLeafComparator(LeafReaderContext context)LeafFieldComparatorIntComparator. getLeafComparator(LeafReaderContext context)LeafFieldComparatorLongComparator. getLeafComparator(LeafReaderContext context)LeafFieldComparatorTermOrdValComparator. getLeafComparator(LeafReaderContext context)protected NumericDocValuesNumericComparator.NumericLeafComparator. getNumericDocValues(LeafReaderContext context, String field)Retrieves the NumericDocValues for the field in this segmentprotected SortedDocValuesTermOrdValComparator. getSortedDocValues(LeafReaderContext context, String field)Retrieves the SortedDocValues for the field in this segmentConstructors in org.apache.lucene.search.comparators with parameters of type LeafReaderContext Constructor Description DoubleLeafComparator(LeafReaderContext context)FloatLeafComparator(LeafReaderContext context)IntLeafComparator(LeafReaderContext context)LongLeafComparator(LeafReaderContext context)NumericLeafComparator(LeafReaderContext context)
-