Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.blocktree |
BlockTree terms dictionary.
|
org.apache.lucene.codecs.compressing |
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
|
org.apache.lucene.codecs.idversion |
A primary-key postings format that associates a version (long) with each term and
can provide fail-fast lookups by ID and version.
|
org.apache.lucene.codecs.lucene70 |
Components from the Lucene 7.0 index format.
|
org.apache.lucene.codecs.lucene80 |
Lucene 8.0 file format.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.index.memory |
High-performance single-document main memory Apache Lucene fulltext search index.
|
org.apache.lucene.misc |
Miscellaneous index tools.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
Grouping.
|
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.
|
org.apache.lucene.search.uhighlight |
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.
|
org.apache.lucene.util.automaton |
Finite-state automaton for regular expressions.
|
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DocValuesConsumer.BitsFilteredTermsEnum |
Modifier and Type | Method and Description |
---|---|
abstract BlockTermState |
PostingsWriterBase.writeTerm(BytesRef term,
TermsEnum termsEnum,
FixedBitSet docsSeen,
NormsProducer norms)
Write all postings for one term; use the provided
TermsEnum to pull a PostingsEnum . |
BlockTermState |
PushPostingsWriterBase.writeTerm(BytesRef term,
TermsEnum termsEnum,
FixedBitSet docsSeen,
NormsProducer norms) |
Constructor and Description |
---|
BitsFilteredTermsEnum(TermsEnum in,
LongBitSet liveTerms) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
IntersectTermsEnum
This is used to implement efficient
Terms.intersect(org.apache.lucene.util.automaton.CompiledAutomaton, org.apache.lucene.util.BytesRef) for
block-tree. |
(package private) class |
SegmentTermsEnum
Iterates through terms in this field.
|
Modifier and Type | Method and Description |
---|---|
TermsEnum |
FieldReader.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
FieldReader.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
BlockTreeTermsWriter.TermsWriter.write(BytesRef text,
TermsEnum termsEnum,
NormsProducer norms)
Writes one term's worth of postings.
|
Modifier and Type | Class and Description |
---|---|
private static class |
CompressingTermVectorsReader.TVTermsEnum |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
CompressingTermVectorsReader.TVTerms.iterator() |
Modifier and Type | Class and Description |
---|---|
class |
IDVersionSegmentTermsEnum
Iterates through terms in this field; this class is public so users
can cast it to call
IDVersionSegmentTermsEnum.seekExact(BytesRef, long) for
optimistic-concurrency, and also IDVersionSegmentTermsEnum.getVersion() to get the
version of the currently seek'd term. |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
VersionFieldReader.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
VersionBlockTreeTermsWriter.TermsWriter.write(BytesRef text,
TermsEnum termsEnum,
NormsProducer norms)
Writes one term's worth of postings.
|
Modifier and Type | Class and Description |
---|---|
private static class |
Lucene70DocValuesProducer.TermsDict |
Modifier and Type | Field and Description |
---|---|
(package private) TermsEnum |
Lucene70DocValuesProducer.BaseSortedDocValues.termsEnum |
(package private) TermsEnum |
Lucene70DocValuesProducer.BaseSortedSetDocValues.termsEnum |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
Lucene70DocValuesProducer.BaseSortedDocValues.termsEnum() |
TermsEnum |
Lucene70DocValuesProducer.BaseSortedSetDocValues.termsEnum() |
Modifier and Type | Class and Description |
---|---|
private static class |
Lucene80DocValuesProducer.TermsDict |
Modifier and Type | Field and Description |
---|---|
(package private) TermsEnum |
Lucene80DocValuesProducer.BaseSortedDocValues.termsEnum |
(package private) TermsEnum |
Lucene80DocValuesProducer.BaseSortedSetDocValues.termsEnum |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
Lucene80DocValuesProducer.BaseSortedDocValues.termsEnum() |
TermsEnum |
Lucene80DocValuesProducer.BaseSortedSetDocValues.termsEnum() |
Modifier and Type | Class and Description |
---|---|
class |
AutomatonTermsEnum
A FilteredTermsEnum that enumerates terms based upon what is accepted by a
DFA.
|
class |
BaseTermsEnum
A base TermsEnum that adds default implementations for
BaseTermsEnum.attributes()
BaseTermsEnum.termState()
BaseTermsEnum.seekExact(BytesRef)
BaseTermsEnum.seekExact(BytesRef, TermState)
In some cases, the default implementation may be slow and consume huge memory, so subclass SHOULD have its own
implementation if possible. |
static class |
ExitableDirectoryReader.ExitableTermsEnum
Wrapper class for TermsEnum that is used by ExitableTerms for implementing an
exitable enumeration of terms.
|
class |
FilteredTermsEnum
Abstract class for enumerating a subset of all terms.
|
static class |
FilterLeafReader.FilterTermsEnum
Base class for filtering
TermsEnum implementations. |
private static class |
FreqProxFields.FreqProxTermsEnum |
private static class |
MappedMultiFields.MappedMultiTermsEnum |
class |
MultiTermsEnum
|
class |
SingleTermsEnum
Subclass of FilteredTermsEnum for enumerating a single term.
|
(package private) class |
SortedDocValuesTermsEnum
Implements a
TermsEnum wrapping a provided
SortedDocValues . |
(package private) class |
SortedSetDocValuesTermsEnum
Implements a
TermsEnum wrapping a provided
SortedSetDocValues . |
private static class |
SortingLeafReader.SortingTermsEnum |
Modifier and Type | Field and Description |
---|---|
static TermsEnum |
TermsEnum.EMPTY
An empty TermsEnum for quickly returning an empty instance e.g.
|
protected TermsEnum |
FilterLeafReader.FilterTermsEnum.in
The underlying TermsEnum instance.
|
protected TermsEnum |
FilteredTermsEnum.tenum
The delegate
TermsEnum . |
(package private) TermsEnum |
MultiTermsEnum.TermsEnumWithSlice.terms |
(package private) TermsEnum |
OrdinalMap.TermsEnumIndex.termsEnum |
private TermsEnum |
FrozenBufferedUpdates.TermDocsIterator.termsEnum |
(package private) TermsEnum |
BufferedUpdatesStream.SegmentState.termsEnum |
(package private) TermsEnum |
MultiTermsEnum.TermsEnumIndex.termsEnum |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
SortedDocValues.intersect(CompiledAutomaton automaton)
|
TermsEnum |
SortedSetDocValues.intersect(CompiledAutomaton automaton)
|
TermsEnum |
Terms.intersect(CompiledAutomaton compiled,
BytesRef startTerm)
Returns a TermsEnum that iterates over all terms and
documents that are accepted by the provided
CompiledAutomaton . |
TermsEnum |
SortingLeafReader.SortingTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
MultiTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
ExitableDirectoryReader.ExitableTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
FilterLeafReader.FilterTerms.iterator() |
TermsEnum |
FreqProxFields.FreqProxTerms.iterator() |
abstract TermsEnum |
Terms.iterator()
Returns an iterator that will step through all
terms.
|
TermsEnum |
SortingLeafReader.SortingTerms.iterator() |
TermsEnum |
MultiTerms.iterator() |
TermsEnum |
ExitableDirectoryReader.ExitableTerms.iterator() |
TermsEnum |
MappedMultiFields.MappedMultiTerms.iterator() |
private static TermsEnum |
TermStates.loadTermsEnum(LeafReaderContext ctx,
Term term) |
TermsEnum |
MultiTermsEnum.reset(MultiTermsEnum.TermsEnumIndex[] termsEnumsIndex)
The terms array must be newly created TermsEnum, ie
BytesRefIterator.next() has not yet been called. |
TermsEnum |
SortedDocValues.termsEnum()
Returns a
TermsEnum over the values. |
TermsEnum |
SingletonSortedSetDocValues.termsEnum() |
TermsEnum |
SortedSetDocValues.termsEnum()
Returns a
TermsEnum over the values. |
Modifier and Type | Method and Description |
---|---|
static OrdinalMap |
OrdinalMap.build(IndexReader.CacheKey owner,
TermsEnum[] subs,
long[] weights,
float acceptableOverheadRatio)
Creates an ordinal map that allows mapping ords to/from a merged
space from
subs . |
private static long |
CheckIndex.getDocsFromTermRange(java.lang.String field,
int maxDoc,
TermsEnum termsEnum,
FixedBitSet docsSeen,
BytesRef minTerm,
BytesRef maxTerm,
boolean isIntersect)
Visits all terms in the range minTerm (inclusive) to maxTerm (exclusive), marking all doc IDs encountered into allDocsSeen, and
returning the total number of terms visited.
|
void |
MultiTermsEnum.TermsEnumWithSlice.reset(TermsEnum terms,
BytesRef term) |
Constructor and Description |
---|
AutomatonTermsEnum(TermsEnum tenum,
CompiledAutomaton compiled)
Construct an enumerator based upon an automaton, enumerating the specified
field, working on a supplied TermsEnum
|
ExitableTermsEnum(TermsEnum termsEnum,
QueryTimeout queryTimeout)
Constructor
|
FilteredTermsEnum(TermsEnum tenum)
Creates a filtered
TermsEnum on a terms enum. |
FilteredTermsEnum(TermsEnum tenum,
boolean startWithSeek)
Creates a filtered
TermsEnum on a terms enum. |
FilterTermsEnum(TermsEnum in)
Creates a new FilterTermsEnum
|
OrdinalMap(IndexReader.CacheKey owner,
TermsEnum[] subs,
OrdinalMap.SegmentMap segmentMap,
float acceptableOverheadRatio) |
SingleTermsEnum(TermsEnum tenum,
BytesRef termText)
Creates a new
SingleTermsEnum . |
SortingTermsEnum(TermsEnum in,
Sorter.DocMap docMap,
IndexOptions indexOptions,
boolean hasPositions) |
TermsEnumIndex(TermsEnum termsEnum,
int subIndex) |
TermsEnumIndex(TermsEnum termsEnum,
int subIndex) |
Modifier and Type | Class and Description |
---|---|
private class |
MemoryIndex.MemoryIndexReader.MemoryTermsEnum |
Modifier and Type | Method and Description |
---|---|
protected void |
HighFreqTerms.TermStatsQueue.fill(java.lang.String field,
TermsEnum termsEnum) |
Modifier and Type | Class and Description |
---|---|
class |
FuzzyTermsEnum
Subclass of TermsEnum for enumerating all terms that are similar
to the specified filter term.
|
Modifier and Type | Field and Description |
---|---|
private TermsEnum |
FuzzyTermsEnum.actualEnum |
(package private) TermsEnum |
ScoringRewrite.ParallelArraysTermCollector.termsEnum |
(package private) TermsEnum |
TermInSetQuery.TermAndState.termsEnum |
Modifier and Type | Method and Description |
---|---|
private TermsEnum |
FuzzyTermsEnum.getAutomatonEnum(int editDistance,
BytesRef lastTerm)
return an automata-based enum for matching up to editDistance from
lastTerm, if possible
|
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 |
protected TermsEnum |
MultiTermQuery.RewriteMethod.getTermsEnum(MultiTermQuery query,
Terms terms,
AttributeSource atts)
Returns the
MultiTermQuery s TermsEnum |
protected TermsEnum |
MultiTermQuery.getTermsEnum(Terms terms)
Convenience method, if no attributes are needed:
This simply passes empty attributes and is equal to:
getTermsEnum(terms, new AttributeSource()) |
protected TermsEnum |
FuzzyQuery.getTermsEnum(Terms terms,
AttributeSource atts) |
protected TermsEnum |
AutomatonQuery.getTermsEnum(Terms terms,
AttributeSource atts) |
protected abstract TermsEnum |
MultiTermQuery.getTermsEnum(Terms terms,
AttributeSource atts)
Construct the enumeration to be used, expanding the
pattern term.
|
Modifier and Type | Method and Description |
---|---|
void |
ScoringRewrite.ParallelArraysTermCollector.setNextEnum(TermsEnum termsEnum) |
abstract void |
TermCollectingRewrite.TermCollector.setNextEnum(TermsEnum termsEnum)
the next segment's
TermsEnum that is used to collect terms |
(package private) static float |
PhraseQuery.termPositionsCost(TermsEnum termsEnum)
Returns an expected cost in simple operations
of processing the occurrences of a term
in a document that contains the term.
|
Constructor and Description |
---|
TermAndState(java.lang.String field,
TermsEnum termsEnum) |
Modifier and Type | Field and Description |
---|---|
private TermsEnum |
TermGroupFacetCollector.MV.facetOrdTermsEnum |
(package private) TermsEnum |
TermGroupFacetCollector.SV.SegmentResult.tenum |
(package private) TermsEnum |
TermGroupFacetCollector.MV.SegmentResult.tenum |
Constructor and Description |
---|
SegmentResult(int[] counts,
int total,
int missingCountIndex,
TermsEnum tenum,
int startFacetOrd,
int endFacetOrd) |
SegmentResult(int[] counts,
int total,
TermsEnum tenum,
int startFacetOrd,
int endFacetOrd) |
Modifier and Type | Method and Description |
---|---|
(package private) static IntervalIterator |
TermIntervalsSource.intervals(BytesRef term,
TermsEnum te) |
private IntervalIterator |
PayloadFilteredTermIntervalsSource.intervals(TermsEnum te) |
private MatchesIterator |
PayloadFilteredTermIntervalsSource.matches(TermsEnum te,
int doc) |
(package private) static MatchesIterator |
TermIntervalsSource.matches(TermsEnum te,
int doc) |
(package private) static float |
TermIntervalsSource.termPositionsCost(TermsEnum termsEnum)
Returns an expected cost in simple operations
of processing the occurrences of a term
in a document that contains the term.
|
Modifier and Type | Class and Description |
---|---|
class |
SeekingTermSetTermsEnum
A filtered TermsEnum that uses a BytesRefHash as a filter
|
Modifier and Type | Method and Description |
---|---|
protected TermsEnum |
TermsQuery.getTermsEnum(Terms terms,
AttributeSource atts) |
Modifier and Type | Method and Description |
---|---|
protected void |
TermsIncludingScoreQuery.SVInOrderScorer.fillDocsAndScores(FixedBitSet matchingDocs,
TermsEnum termsEnum) |
protected void |
TermsIncludingScoreQuery.MVInOrderScorer.fillDocsAndScores(FixedBitSet matchingDocs,
TermsEnum termsEnum) |
Constructor and Description |
---|
MVInOrderScorer(Weight weight,
TermsEnum termsEnum,
int maxDoc,
long cost) |
SeekingTermSetTermsEnum(TermsEnum tenum,
BytesRefHash terms,
int[] ords)
Constructor
|
SVInOrderScorer(Weight weight,
TermsEnum termsEnum,
int maxDoc,
long cost) |
Modifier and Type | Method and Description |
---|---|
(package private) static float |
SpanTermQuery.termPositionsCost(TermsEnum termsEnum)
Returns an expected cost in simple operations
of processing the occurrences of a term
in a document that contains the term.
|
Modifier and Type | Class and Description |
---|---|
private static class |
TermVectorFilteredLeafReader.TermVectorFilteredTermsEnum |
Modifier and Type | Field and Description |
---|---|
private TermsEnum |
TermVectorFilteredLeafReader.TermVectorFilteredTermsEnum.baseTermsEnum |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
TermVectorFilteredLeafReader.TermsFilteredTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
TermVectorFilteredLeafReader.TermsFilteredTerms.iterator() |
Constructor and Description |
---|
TermVectorFilteredTermsEnum(TermsEnum baseTermsEnum,
TermsEnum filteredTermsEnum) |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
CompiledAutomaton.getTermsEnum(Terms terms)
|