Uses of Class
org.apache.lucene.index.TermsEnum
Package
Description
Codecs API: API for customization of the encoding and structure of the index.
BlockTree terms dictionary.
Code to maintain and access indices.
Code to search indices.
Finite-state automaton for regular expressions.
-
Uses of TermsEnum in org.apache.lucene.codecs
Modifier and TypeMethodDescriptionabstract BlockTermState
PostingsWriterBase.writeTerm
(BytesRef term, TermsEnum termsEnum, FixedBitSet docsSeen, NormsProducer norms) Write all postings for one term; use the providedTermsEnum
to pull aPostingsEnum
.final BlockTermState
PushPostingsWriterBase.writeTerm
(BytesRef term, TermsEnum termsEnum, FixedBitSet docsSeen, NormsProducer norms) -
Uses of TermsEnum in org.apache.lucene.codecs.lucene90.blocktree
-
Uses of TermsEnum in org.apache.lucene.index
Modifier and TypeClassDescriptionclass
A FilteredTermsEnum that enumerates terms based upon what is accepted by a DFA.class
A base TermsEnum that adds default implementations forBaseTermsEnum.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
Wrapper class for TermsEnum that is used by ExitableTerms for implementing an exitable enumeration of terms.class
Abstract class for enumerating a subset of all terms.static class
Base class for filteringTermsEnum
implementations.final class
final class
Subclass of FilteredTermsEnum for enumerating a single term.Modifier and TypeFieldDescriptionstatic final TermsEnum
TermsEnum.EMPTY
An empty TermsEnum for quickly returning an empty instance e.g.protected final TermsEnum
FilterLeafReader.FilterTermsEnum.in
The underlying TermsEnum instance.protected final TermsEnum
FilteredTermsEnum.tenum
The delegateTermsEnum
.Modifier and TypeMethodDescriptionExitableDirectoryReader.ExitableTerms.intersect
(CompiledAutomaton compiled, BytesRef startTerm) FilterSortedDocValues.intersect
(CompiledAutomaton automaton) FilterSortedSetDocValues.intersect
(CompiledAutomaton automaton) MultiTerms.intersect
(CompiledAutomaton compiled, BytesRef startTerm) SortedDocValues.intersect
(CompiledAutomaton automaton) SortedSetDocValues.intersect
(CompiledAutomaton automaton) Terms.intersect
(CompiledAutomaton compiled, BytesRef startTerm) Returns a TermsEnum that iterates over all terms and documents that are accepted by the providedCompiledAutomaton
.ExitableDirectoryReader.ExitableTerms.iterator()
FilterLeafReader.FilterTerms.iterator()
MultiTerms.iterator()
abstract TermsEnum
Terms.iterator()
Returns an iterator that will step through all terms.MultiTermsEnum.reset
(org.apache.lucene.index.MultiTermsEnum.TermsEnumIndex[] termsEnumsIndex) The terms array must be newly created TermsEnum, ieBytesRefIterator.next()
has not yet been called.FilterSortedDocValues.termsEnum()
FilterSortedSetDocValues.termsEnum()
SortedDocValues.termsEnum()
Returns aTermsEnum
over the values.SortedSetDocValues.termsEnum()
Returns aTermsEnum
over the values.Modifier and TypeMethodDescriptionstatic 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 fromsubs
.ModifierConstructorDescriptionAutomatonTermsEnum
(TermsEnum tenum, CompiledAutomaton compiled) Construct an enumerator based upon an automaton, enumerating the specified field, working on a supplied TermsEnumExitableTermsEnum
(TermsEnum termsEnum, QueryTimeout queryTimeout) Constructor *protected
FilteredTermsEnum
(TermsEnum tenum) Creates a filteredTermsEnum
on a terms enum.protected
FilteredTermsEnum
(TermsEnum tenum, boolean startWithSeek) Creates a filteredTermsEnum
on a terms enum.protected
Creates a new FilterTermsEnumSingleTermsEnum
(TermsEnum tenum, BytesRef termText) Creates a newSingleTermsEnum
. -
Uses of TermsEnum in org.apache.lucene.search
Modifier and TypeClassDescriptionfinal class
Subclass of TermsEnum for enumerating all terms that are similar to the specified filter term.Modifier and TypeMethodDescriptionprotected TermsEnum
AutomatonQuery.getTermsEnum
(Terms terms, AttributeSource atts) protected TermsEnum
FuzzyQuery.getTermsEnum
(Terms terms, AttributeSource atts) final TermsEnum
MultiTermQuery.getTermsEnum
(Terms terms) Constructs an enumeration that expands the pattern term.protected abstract TermsEnum
MultiTermQuery.getTermsEnum
(Terms terms, AttributeSource atts) Construct the enumeration to be used, expanding the pattern term.protected TermsEnum
MultiTermQuery.RewriteMethod.getTermsEnum
(MultiTermQuery query, Terms terms, AttributeSource atts) Returns theMultiTermQuery
sTermsEnum
Modifier and TypeMethodDescriptionstatic 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. -
Uses of TermsEnum in org.apache.lucene.util.automaton