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 Lucene41, 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 |
Misc index tools and index support.
|
org.apache.lucene.sandbox.queries |
Additional queries (some may have caveats or limitations)
|
org.apache.lucene.sandbox.queries.regex |
Regular expression Query.
|
org.apache.lucene.search |
This package contains a single proximity query, TermAutomatonQuery.
|
org.apache.lucene.search.highlight |
The highlight package contains classes to provide "keyword in context" features
typically used to highlight search terms in the text of results pages.
|
org.apache.lucene.util |
General test support.
|
org.apache.lucene.util.automaton |
Support for testing automata.
|
Modifier and Type | Method and Description |
---|---|
static 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 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(String field) |
Modifier and Type | Class and Description |
---|---|
class |
FieldReader
BlockTree's implementation of
Terms . |
Modifier and Type | Method and Description |
---|---|
Terms |
BlockTreeTermsReader.terms(String field) |
Modifier and Type | Method and Description |
---|---|
Terms |
OrdsBlockTreeTermsReader.terms(String field) |
Modifier and Type | Method and Description |
---|---|
Terms |
VersionBlockTreeTermsReader.terms(String field) |
Modifier and Type | Method and Description |
---|---|
Terms |
FSTTermsReader.terms(String field) |
Terms |
FSTOrdTermsReader.terms(String field) |
Modifier and Type | Class and Description |
---|---|
static class |
AssertingAtomicReader.AssertingTerms
Wraps a Terms but with additional asserts
|
static class |
FilterAtomicReader.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 |
FilterAtomicReader.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,
String field)
This method may return null if the field does not exist.
|
Terms |
IndexReader.getTermVector(int docID,
String field)
Retrieve term vector for this document and field, or
null if term vectors were not indexed.
|
Terms |
AssertingAtomicReader.AssertingFields.terms(String field) |
Terms |
AtomicReader.terms(String field)
This may return null if the field does not exist.
|
abstract Terms |
Fields.terms(String field)
Get the
Terms for this field. |
Terms |
FilterAtomicReader.FilterFields.terms(String field) |
Terms |
MultiFields.terms(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) |
FilterTerms(Terms in)
Creates a new FilterTerms
|
MultiTerms(Terms[] subs,
ReaderSlice[] subSlices)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
protected TermsEnum |
SlowCollatedTermRangeQuery.getTermsEnum(Terms terms,
AttributeSource atts)
Deprecated.
|
protected TermsEnum |
SlowFuzzyQuery.getTermsEnum(Terms terms,
AttributeSource atts)
Deprecated.
|
Constructor and Description |
---|
SlowFuzzyTermsEnum(Terms terms,
AttributeSource atts,
Term term,
float minSimilarity,
int prefixLength)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected FilteredTermsEnum |
RegexQuery.getTermsEnum(Terms terms,
AttributeSource atts) |
Modifier and Type | Field and Description |
---|---|
protected 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 |
NumericRangeQuery.getTermsEnum(Terms terms,
AttributeSource atts) |
protected TermsEnum |
AutomatonQuery.getTermsEnum(Terms terms,
AttributeSource atts) |
protected TermsEnum |
PrefixQuery.getTermsEnum(Terms terms,
AttributeSource atts) |
protected abstract TermsEnum |
MultiTermQuery.getTermsEnum(Terms terms,
AttributeSource atts)
Construct the enumeration to be used, expanding the
pattern term.
|
protected TermsEnum |
TermRangeQuery.getTermsEnum(Terms terms,
AttributeSource atts) |
protected TermsEnum |
FuzzyQuery.getTermsEnum(Terms terms,
AttributeSource atts) |
TermsEnum |
FieldCache.Parser.termsEnum(Terms terms)
|
Constructor and Description |
---|
FuzzyTermsEnum(Terms terms,
AttributeSource atts,
Term term,
float minSimilarity,
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 a fuzzy similarity >
minSimilarity . |
Modifier and Type | Method and Description |
---|---|
static TokenStream |
TokenSources.getTokenStream(Terms vector) |
static TokenStream |
TokenSources.getTokenStream(Terms tpv,
boolean tokenPositionsGuaranteedContiguous)
Low level api.
|
Constructor and Description |
---|
TokenStreamFromTermPositionVector(Terms vector)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
LuceneTestCase.assertTermsEquals(String info,
IndexReader leftReader,
Terms leftTerms,
Terms rightTerms,
boolean deep)
Terms api equivalency
|
void |
LuceneTestCase.assertTermsStatisticsEquals(String info,
Terms leftTerms,
Terms rightTerms)
checks collection-level statistics on Terms
|
static int |
NumericUtils.getMaxInt(Terms terms)
Returns the maximum int value indexed into this
numeric field.
|
static long |
NumericUtils.getMaxLong(Terms terms)
Returns the maximum long value indexed into this
numeric field.
|
static int |
NumericUtils.getMinInt(Terms terms)
Returns the minimum int value indexed into this
numeric field.
|
static long |
NumericUtils.getMinLong(Terms terms)
Returns the minimum long value indexed into this
numeric field.
|
Modifier and Type | Method and Description |
---|---|
TermsEnum |
CompiledAutomaton.getTermsEnum(Terms terms)
|
Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.