Package | Description |
---|---|
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.perfield |
Postings format that can delegate to different formats per-field.
|
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.queries.mlt |
Document similarity query generators.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
org.apache.lucene.search.uhighlight |
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.
|
org.apache.lucene.util |
Some utility classes.
|
org.apache.lucene.util.automaton |
Finite-state automaton for regular expressions.
|
Modifier and Type | Class and Description |
---|---|
class |
FieldReader
BlockTree's implementation of
Terms . |
Modifier and Type | Method and Description |
---|---|
Terms |
BlockTreeTermsReader.terms(java.lang.String field) |
Modifier and Type | Class and Description |
---|---|
private static class |
CompressingTermVectorsReader.TVTerms |
Modifier and Type | Method and Description |
---|---|
Terms |
CompressingTermVectorsReader.TVFields.terms(java.lang.String field) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
VersionFieldReader
BlockTree's implementation of
Terms . |
Modifier and Type | Method and Description |
---|---|
Terms |
VersionBlockTreeTermsReader.terms(java.lang.String field) |
Modifier and Type | Method and Description |
---|---|
Terms |
PerFieldMergeState.FilterFieldsProducer.terms(java.lang.String field) |
Terms |
PerFieldPostingsFormat.FieldsReader.terms(java.lang.String field) |
Modifier and Type | Class and Description |
---|---|
static class |
ExitableDirectoryReader.ExitableTerms
Wrapper class for another Terms implementation that is used by ExitableFields.
|
static class |
FilterLeafReader.FilterTerms
Base class for filtering
Terms implementations. |
private static class |
FreqProxFields.FreqProxTerms |
private static class |
MappedMultiFields.MappedMultiTerms |
class |
MultiTerms
Exposes flex API, merged from flex API of
sub-segments.
|
private static class |
SortingLeafReader.SortingTerms |
Modifier and Type | Field and Description |
---|---|
static Terms[] |
Terms.EMPTY_ARRAY
Zero-length array of
Terms . |
protected Terms |
FilterLeafReader.FilterTerms.in
The underlying Terms instance.
|
private Terms[] |
MultiTerms.subs |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<java.lang.String,Terms> |
ParallelLeafReader.ParallelFields.fields |
private java.util.Map<java.lang.String,Terms> |
MultiFields.terms |
Modifier and Type | Method and Description |
---|---|
Terms[] |
MultiTerms.getSubTerms()
Expert: returns the Terms being merged.
|
static Terms |
MultiTerms.getTerms(IndexReader r,
java.lang.String field)
This method may return null if the field does not exist or if it has no terms.
|
Terms |
IndexReader.getTermVector(int docID,
java.lang.String field)
Retrieve term vector for this document and field, or
null if term vectors were not indexed.
|
abstract Terms |
LeafReader.terms(java.lang.String field)
Returns the
Terms index for this field, or null if it has none. |
Terms |
FilterLeafReader.terms(java.lang.String field) |
Terms |
FilterLeafReader.FilterFields.terms(java.lang.String field) |
Terms |
FreqProxFields.terms(java.lang.String field) |
Terms |
MultiFields.terms(java.lang.String field) |
Terms |
SortingLeafReader.terms(java.lang.String field) |
Terms |
SortingLeafReader.SortingFields.terms(java.lang.String field) |
Terms |
MergeReaderWrapper.terms(java.lang.String field) |
Terms |
FrozenBufferedUpdates.TermDocsIterator.TermsProvider.terms(java.lang.String field) |
Terms |
CodecReader.terms(java.lang.String field) |
Terms |
ExitableDirectoryReader.ExitableFilterAtomicReader.terms(java.lang.String field) |
Terms |
MappedMultiFields.terms(java.lang.String field) |
abstract Terms |
Fields.terms(java.lang.String field)
Get the
Terms for this field. |
Terms |
ParallelLeafReader.terms(java.lang.String field) |
Terms |
ParallelLeafReader.ParallelFields.terms(java.lang.String field) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
ParallelLeafReader.ParallelFields.addField(java.lang.String fieldName,
Terms terms) |
private static boolean |
CheckIndex.checkSingleTermRange(java.lang.String field,
int maxDoc,
Terms terms,
BytesRef minTerm,
BytesRef maxTerm,
FixedBitSet normalDocs,
FixedBitSet intersectDocs)
Test Terms.intersect on this range, and validates that it returns the same doc ids as using non-intersect TermsEnum.
|
Constructor and Description |
---|
ExitableTerms(Terms terms,
QueryTimeout queryTimeout)
Constructor
|
FilterTerms(Terms in)
Creates a new FilterTerms
|
MultiTerms(Terms[] subs,
ReaderSlice[] subSlices)
Sole constructor.
|
SortingTerms(Terms in,
IndexOptions indexOptions,
Sorter.DocMap docMap) |
Modifier and Type | Method and Description |
---|---|
Terms |
MemoryIndex.MemoryIndexReader.terms(java.lang.String field) |
Terms |
MemoryIndex.MemoryIndexReader.MemoryFields.terms(java.lang.String field) |
Modifier and Type | Method and Description |
---|---|
private void |
MoreLikeThis.addTermFrequencies(java.util.Map<java.lang.String,java.util.Map<java.lang.String,MoreLikeThis.Int>> field2termFreqMap,
Terms vector,
java.lang.String fieldName)
Adds terms and frequencies found in vector into the Map termFreqMap
|
Modifier and Type | Field and Description |
---|---|
(package private) Terms |
FuzzyTermsEnum.terms |
Modifier and Type | Method and Description |
---|---|
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.
|
Constructor and Description |
---|
FuzzyTermsEnum(Terms terms,
AttributeSource atts,
Term term,
int maxEdits,
int prefixLength,
boolean transpositions)
Constructor for enumeration of all terms from specified
reader which share a prefix of
length prefixLength with term and which have at most maxEdits edits. |
Modifier and Type | Field and Description |
---|---|
private Terms |
TokenStreamFromTermVector.vector |
Modifier and Type | Method and Description |
---|---|
Terms |
TokenStreamFromTermVector.getTermVectorTerms() |
Terms |
WeightedSpanTermExtractor.DelegatingLeafReader.terms(java.lang.String field) |
Terms |
TermVectorLeafReader.terms(java.lang.String field) |
Modifier and Type | Method and Description |
---|---|
static TokenStream |
TokenSources.getTokenStream(Terms tpv)
Deprecated.
|
static TokenStream |
TokenSources.getTokenStream(Terms vector,
boolean tokenPositionsGuaranteedContiguous)
Deprecated.
|
Constructor and Description |
---|
TermVectorLeafReader(java.lang.String field,
Terms terms) |
TokenStreamFromTermVector(Terms vector,
int maxStartOffset)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected TermsEnum |
TermsQuery.getTermsEnum(Terms terms,
AttributeSource atts) |
Modifier and Type | Class and Description |
---|---|
private static class |
TermVectorFilteredLeafReader.TermsFilteredTerms |
Modifier and Type | Field and Description |
---|---|
private Terms |
TermVectorFilteredLeafReader.filterTerms |
private Terms |
TermVectorFilteredLeafReader.TermsFilteredTerms.filterTerms |
Modifier and Type | Method and Description |
---|---|
Terms |
OverlaySingleDocTermsLeafReader.terms(java.lang.String field) |
Terms |
PhraseHelper.SingleFieldWithOffsetsFilterLeafReader.terms(java.lang.String field) |
Terms |
TermVectorFilteredLeafReader.terms(java.lang.String field) |
Modifier and Type | Method and Description |
---|---|
protected void |
FieldOffsetStrategy.createOffsetsEnumsForAutomata(Terms termsIndex,
int doc,
java.util.List<OffsetsEnum> results) |
protected void |
FieldOffsetStrategy.createOffsetsEnumsForTerms(BytesRef[] sourceTerms,
Terms termsIndex,
int doc,
java.util.List<OffsetsEnum> results) |
Constructor and Description |
---|
TermsFilteredTerms(Terms baseTerms,
Terms filterTerms) |
TermVectorFilteredLeafReader(LeafReader baseLeafReader,
Terms filterTerms,
java.lang.String fieldFilter)
Construct a FilterLeafReader based on the specified base reader.
|
Constructor and Description |
---|
DocIdSetBuilder(int maxDoc,
Terms terms)
Create a
DocIdSetBuilder instance that is optimized for
accumulating docs that match the given Terms . |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
CompiledAutomaton.getTermsEnum(Terms terms)
|