Package | Description |
---|---|
org.apache.lucene.classification.utils |
Utilities for evaluation, data preparation, etc.
|
org.apache.lucene.codecs.blockterms |
Pluggable term index / block terms dictionary implementations.
|
org.apache.lucene.codecs.blocktree |
BlockTree terms dictionary.
|
org.apache.lucene.codecs.blocktreeords |
Same postings format as Lucene50, except the terms dictionary also
supports ords, i.e.
|
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.memory |
Term dictionary, DocValues or Postings formats that are read
entirely into memory.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
org.apache.lucene.search.suggest.document |
Support for document suggestion
|
org.apache.lucene.search.uhighlight |
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.
|
org.apache.lucene.spatial.prefix |
Prefix Tree Strategy.
|
org.apache.lucene.util |
Some utility classes.
|
org.apache.lucene.util.automaton |
Finite-state automaton for regular expressions.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Double[] |
DocToDoubleVectorUtils.toDenseLocalFreqDoubleArray(Terms docTerms)
create a dense
Double vector given doc and field term vectors using local frequency of the terms in the doc |
static java.lang.Double[] |
DocToDoubleVectorUtils.toSparseLocalFreqDoubleArray(Terms docTerms,
Terms fieldTerms)
create a sparse
Double vector given doc and field term vectors using local frequency of the terms in the doc |
Modifier and Type | Method and Description |
---|---|
Terms |
BlockTermsReader.terms(java.lang.String field) |
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 | Method and Description |
---|---|
Terms |
OrdsBlockTreeTermsReader.terms(java.lang.String field) |
Modifier and Type | Method and Description |
---|---|
Terms |
VersionBlockTreeTermsReader.terms(java.lang.String field) |
Modifier and Type | Method and Description |
---|---|
Terms |
FSTOrdTermsReader.terms(java.lang.String field) |
Terms |
FSTTermsReader.terms(java.lang.String field) |
Modifier and Type | Class and Description |
---|---|
static class |
AssertingLeafReader.AssertingTerms
Wraps a Terms but with additional asserts
|
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. |
class |
MultiTerms
Exposes flex API, merged from flex API of
sub-segments.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Terms[] |
MultiTerms.getSubTerms()
Expert: returns the Terms being merged.
|
static Terms |
MultiFields.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.
|
Terms |
AssertingLeafReader.terms(java.lang.String field) |
Terms |
AssertingLeafReader.AssertingFields.terms(java.lang.String field) |
Terms |
FieldFilterLeafReader.terms(java.lang.String field) |
Terms |
MappedMultiFields.terms(java.lang.String field) |
abstract Terms |
LeafReader.terms(java.lang.String field)
Returns the
Terms index for this field, or null if it has none. |
Terms |
ParallelLeafReader.terms(java.lang.String field) |
abstract Terms |
Fields.terms(java.lang.String field)
Get the
Terms for this field. |
Terms |
CodecReader.terms(java.lang.String field) |
Terms |
ExitableDirectoryReader.ExitableFilterAtomicReader.terms(java.lang.String field) |
Terms |
FilterLeafReader.terms(java.lang.String field) |
Terms |
FilterLeafReader.FilterFields.terms(java.lang.String field) |
Terms |
MultiFields.terms(java.lang.String field) |
Modifier and Type | Method and Description |
---|---|
protected void |
BaseTermVectorsFormatTestCase.assertEquals(BaseTermVectorsFormatTestCase.RandomTokenStream tk,
FieldType ft,
Terms terms) |
Constructor and Description |
---|
AssertingTerms(Terms in) |
ExitableTerms(Terms terms,
QueryTimeout queryTimeout)
Constructor
|
FilterTerms(Terms in)
Creates a new FilterTerms
|
MultiTerms(Terms[] subs,
ReaderSlice[] subSlices)
Sole constructor.
|
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 | Method and Description |
---|---|
Terms |
TokenStreamFromTermVector.getTermVectorTerms() |
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 | Class and Description |
---|---|
class |
CompletionTerms
Wrapped
Terms
used by SuggestField and ContextSuggestField
to access corresponding suggester and their attributes |
Modifier and Type | Method and Description |
---|---|
Terms |
OverlaySingleDocTermsLeafReader.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) |
Modifier and Type | Field and Description |
---|---|
protected Terms |
AbstractPrefixTreeQuery.BaseTermsEnumTraverser.terms |
Modifier and Type | Method and Description |
---|---|
void |
LuceneTestCase.assertTermsEquals(java.lang.String info,
IndexReader leftReader,
Terms leftTerms,
Terms rightTerms,
boolean deep)
Terms api equivalency
|
void |
LuceneTestCase.assertTermsStatisticsEquals(java.lang.String info,
Terms leftTerms,
Terms rightTerms)
checks collection-level statistics on Terms
|
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)
|
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.