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.lucene54 |
Lucene 5.4 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.queries |
Filters and Queries that add to core Lucene.
|
org.apache.lucene.sandbox.queries |
Additional queries (some may have caveats or limitations)
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping.term |
Support for grouping by indexed terms via
DocValues . |
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
org.apache.lucene.search.postingshighlight |
Highlighter implementation that uses offsets from postings lists.
|
org.apache.lucene.search.spans |
The calculus of spans.
|
org.apache.lucene.uninverting |
Support for creating docvalues on-the-fly from the inverted index at runtime.
|
org.apache.lucene.util |
Some utility classes.
|
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)
Write all postings for one term; use the provided
TermsEnum to pull a PostingsEnum . |
BlockTermState |
PushPostingsWriterBase.writeTerm(BytesRef term,
TermsEnum termsEnum,
FixedBitSet docsSeen) |
Constructor and Description |
---|
BitsFilteredTermsEnum(TermsEnum in,
LongBitSet liveTerms) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
BitSetTermsEnum
Silly stub class, used only when writing an auto-prefix
term in order to expose DocsEnum over a FixedBitSet.
|
(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 | Field and Description |
---|---|
private TermsEnum |
BlockTreeTermsWriter.prefixTermsEnum
Reused in getAutoPrefixTermsEnum:
|
Modifier and Type | Method and Description |
---|---|
private TermsEnum |
BlockTreeTermsWriter.getAutoPrefixTermsEnum(Terms terms,
AutoPrefixTermsWriter.PrefixTerm prefix) |
TermsEnum |
AutoPrefixTermsWriter.PrefixTerm.getTermsEnum(TermsEnum in) |
TermsEnum |
FieldReader.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
FieldReader.iterator() |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
AutoPrefixTermsWriter.PrefixTerm.getTermsEnum(TermsEnum in) |
void |
BlockTreeTermsWriter.TermsWriter.write(BytesRef text,
TermsEnum termsEnum,
AutoPrefixTermsWriter.PrefixTerm prefixTerm)
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-concurreny, 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)
Writes one term's worth of postings.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
Lucene54DocValuesProducer.CompressedBinaryDocValues.CompressedBinaryTermsEnum |
Modifier and Type | Method and Description |
---|---|
(package private) TermsEnum |
Lucene54DocValuesProducer.CompressedBinaryDocValues.getTermsEnum() |
Modifier and Type | Class and Description |
---|---|
class |
AutomatonTermsEnum
A FilteredTermsEnum that enumerates terms based upon what is accepted by a
DFA.
|
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 |
BufferedUpdatesStream.SegmentState.termsEnum |
(package private) TermsEnum |
MultiTermsEnum.TermsEnumIndex.termsEnum |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
ExitableDirectoryReader.ExitableTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
MultiTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
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 |
ExitableDirectoryReader.ExitableTerms.iterator() |
TermsEnum |
FilterLeafReader.FilterTerms.iterator() |
TermsEnum |
FreqProxFields.FreqProxTerms.iterator() |
TermsEnum |
MappedMultiFields.MappedMultiTerms.iterator() |
TermsEnum |
MultiTerms.iterator() |
abstract TermsEnum |
Terms.iterator()
Returns an iterator that will step through all
terms.
|
TermsEnum |
SortingLeafReader.SortingTerms.iterator() |
TermsEnum |
MultiTermsEnum.reset(MultiTermsEnum.TermsEnumIndex[] termsEnumsIndex)
The terms array must be newly created TermsEnum, ie
BytesRefIterator.next() has not yet been called. |
TermsEnum |
SingletonSortedSetDocValues.termsEnum() |
TermsEnum |
SortedDocValues.termsEnum()
Returns a
TermsEnum over the values. |
TermsEnum |
SortedSetDocValues.termsEnum()
Returns a
TermsEnum over the values. |
Modifier and Type | Method and Description |
---|---|
static MultiDocValues.OrdinalMap |
MultiDocValues.OrdinalMap.build(java.lang.Object 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(java.lang.Object owner,
TermsEnum[] subs,
MultiDocValues.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) |
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 | Field and Description |
---|---|
(package private) TermsEnum |
TermsQuery.TermAndState.termsEnum |
Constructor and Description |
---|
TermAndState(java.lang.String field,
TermsEnum termsEnum) |
Modifier and Type | Class and Description |
---|---|
class |
SlowFuzzyTermsEnum
Deprecated.
Use
FuzzyTermsEnum instead. |
private class |
SlowFuzzyTermsEnum.LinearFuzzyTermsEnum
Deprecated.
Implement fuzzy enumeration with linear brute force.
|
Modifier and Type | Method and Description |
---|---|
protected TermsEnum |
SlowFuzzyQuery.getTermsEnum(Terms terms,
AttributeSource atts)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
FuzzyTermsEnum
Subclass of TermsEnum for enumerating all terms that are similar
to the specified filter term.
|
private class |
FuzzyTermsEnum.AutomatonFuzzyTermsEnum
Implement fuzzy enumeration with Terms.intersect.
|
private class |
LegacyNumericRangeQuery.NumericRangeTermsEnum
Deprecated.
Subclass of FilteredTermsEnum for enumerating all terms that match the
sub-ranges for trie range queries, using flex API.
|
Modifier and Type | Field and Description |
---|---|
private TermsEnum |
FuzzyTermsEnum.actualEnum |
(package private) TermsEnum |
ScoringRewrite.ParallelArraysTermCollector.termsEnum |
Modifier and Type | Method and Description |
---|---|
protected 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 |
AutomatonQuery.getTermsEnum(Terms terms,
AttributeSource atts) |
protected TermsEnum |
FuzzyQuery.getTermsEnum(Terms terms,
AttributeSource atts) |
protected TermsEnum |
LegacyNumericRangeQuery.getTermsEnum(Terms terms,
AttributeSource atts)
Deprecated.
|
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 |
---|---|
protected void |
FuzzyTermsEnum.setEnum(TermsEnum actualEnum)
swap in a new actual enum to proxy to
|
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 |
---|
AutomatonFuzzyTermsEnum(TermsEnum tenum,
CompiledAutomaton[] compiled) |
NumericRangeTermsEnum(TermsEnum tenum) |
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 | Class and Description |
---|---|
(package private) static class |
TermsQuery.SeekingTermSetTermsEnum |
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) |
SVInOrderScorer(Weight weight,
TermsEnum termsEnum,
int maxDoc,
long cost) |
Modifier and Type | Method and Description |
---|---|
private Passage[] |
PostingsHighlighter.highlightDoc(java.lang.String field,
BytesRef[] terms,
int contentLength,
java.text.BreakIterator bi,
int doc,
TermsEnum termsEnum,
PostingsEnum[] postings,
int n) |
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 class |
DocTermOrds.OrdWrappedTermsEnum
Deprecated.
"wrap" our own terms index around the original IndexReader.
|
Modifier and Type | Field and Description |
---|---|
(package private) TermsEnum |
DocTermOrds.Iterator.te |
private TermsEnum |
DocTermOrds.OrdWrappedTermsEnum.termsEnum |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
DocTermOrds.getOrdTermsEnum(LeafReader reader)
Deprecated.
Returns a TermsEnum that implements ord, or null if no terms in field.
|
TermsEnum |
DocTermOrds.Iterator.termsEnum() |
TermsEnum |
FieldCache.Parser.termsEnum(Terms terms)
Deprecated.
index with Points instead
|
TermsEnum |
FieldCache.PointParser.termsEnum(Terms terms) |
protected abstract TermsEnum |
FieldCacheImpl.Uninvert.termsEnum(Terms terms)
Deprecated.
remove this when legacy numerics are removed
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
DocTermOrds.lookupTerm(TermsEnum termsEnum,
int ord)
Deprecated.
Returns the term (
BytesRef ) corresponding to
the provided ordinal. |
protected void |
DocTermOrds.visitTerm(TermsEnum te,
int termNum)
Deprecated.
Subclass can override this
|
Modifier and Type | Class and Description |
---|---|
private static class |
LegacyNumericUtils.SeekingNumericFilteredTermsEnum
Deprecated.
Just like FilteredTermsEnum, except it adds a limited
seekCeil implementation that only works with
LegacyNumericUtils.filterPrefixCodedInts(org.apache.lucene.index.TermsEnum) and LegacyNumericUtils.filterPrefixCodedLongs(org.apache.lucene.index.TermsEnum) . |
Modifier and Type | Method and Description |
---|---|
static TermsEnum |
LegacyNumericUtils.filterPrefixCodedInts(TermsEnum termsEnum)
Deprecated.
Filters the given
TermsEnum by accepting only prefix coded 32 bit
terms with a shift value of 0. |
static TermsEnum |
LegacyNumericUtils.filterPrefixCodedLongs(TermsEnum termsEnum)
Deprecated.
Filters the given
TermsEnum by accepting only prefix coded 64 bit
terms with a shift value of 0. |
Modifier and Type | Method and Description |
---|---|
static TermsEnum |
LegacyNumericUtils.filterPrefixCodedInts(TermsEnum termsEnum)
Deprecated.
Filters the given
TermsEnum by accepting only prefix coded 32 bit
terms with a shift value of 0. |
static TermsEnum |
LegacyNumericUtils.filterPrefixCodedLongs(TermsEnum termsEnum)
Deprecated.
Filters the given
TermsEnum by accepting only prefix coded 64 bit
terms with a shift value of 0. |
Constructor and Description |
---|
SeekingNumericFilteredTermsEnum(TermsEnum tenum) |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
CompiledAutomaton.getTermsEnum(Terms terms)
|