Package | Description |
---|---|
org.apache.lucene.classification |
Uses already seen data (the indexed documents) to classify new documents.
|
org.apache.lucene.classification.utils |
Utilities for evaluation, data preparation, etc.
|
org.apache.lucene.facet.taxonomy |
Taxonomy of Categories.
|
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.spatial.util |
Various spatial utilities.
|
org.apache.lucene.uninverting |
Support for creating docvalues on-the-fly from the inverted index at runtime.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Field and Description |
---|---|
protected LeafReader |
SimpleNaiveBayesClassifier.leafReader
LeafReader used to access the Classifier 's
index |
Modifier and Type | Method and Description |
---|---|
void |
SimpleNaiveBayesClassifier.train(LeafReader leafReader,
String[] textFieldNames,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
CachingNaiveBayesClassifier.train(LeafReader leafReader,
String[] textFieldNames,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
KNearestNeighborClassifier.train(LeafReader leafReader,
String[] textFieldNames,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
BooleanPerceptronClassifier.train(LeafReader leafReader,
String[] textFieldNames,
String classFieldName,
Analyzer analyzer,
Query query) |
void |
Classifier.train(LeafReader leafReader,
String[] textFieldNames,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
SimpleNaiveBayesClassifier.train(LeafReader leafReader,
String textFieldName,
String classFieldName,
Analyzer analyzer)
Train the classifier using the underlying Lucene index
|
void |
CachingNaiveBayesClassifier.train(LeafReader leafReader,
String textFieldName,
String classFieldName,
Analyzer analyzer)
Train the classifier using the underlying Lucene index
|
void |
KNearestNeighborClassifier.train(LeafReader leafReader,
String textFieldName,
String classFieldName,
Analyzer analyzer)
Train the classifier using the underlying Lucene index
|
void |
BooleanPerceptronClassifier.train(LeafReader leafReader,
String textFieldName,
String classFieldName,
Analyzer analyzer)
Train the classifier using the underlying Lucene index
|
void |
Classifier.train(LeafReader leafReader,
String textFieldName,
String classFieldName,
Analyzer analyzer)
Train the classifier using the underlying Lucene index
|
void |
SimpleNaiveBayesClassifier.train(LeafReader leafReader,
String textFieldName,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
CachingNaiveBayesClassifier.train(LeafReader leafReader,
String textFieldName,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
KNearestNeighborClassifier.train(LeafReader leafReader,
String textFieldName,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
BooleanPerceptronClassifier.train(LeafReader leafReader,
String textFieldName,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
Classifier.train(LeafReader leafReader,
String textFieldName,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
Modifier and Type | Method and Description |
---|---|
void |
DatasetSplitter.split(LeafReader originalIndex,
Directory trainingIndex,
Directory testIndex,
Directory crossValidationIndex,
Analyzer analyzer,
String... fieldNames)
Split a given index into 3 indexes for training, test and cross validation tasks respectively
|
Modifier and Type | Class and Description |
---|---|
class |
OrdinalMappingLeafReader
A
FilterLeafReader for updating facets ordinal references,
based on an ordinal map. |
Constructor and Description |
---|
OrdinalMappingLeafReader(LeafReader in,
int[] ordinalMap,
FacetsConfig srcConfig)
Wraps an LeafReader, mapping ordinals according to the ordinalMap, using
the provided
FacetsConfig which was used to build the wrapped
reader. |
Modifier and Type | Class and Description |
---|---|
class |
AllDeletedFilterReader
Filters the incoming reader and makes all documents appear deleted.
|
class |
AssertingLeafReader
A
FilterLeafReader that can be used to apply
additional checks for tests. |
class |
CodecReader
LeafReader implemented by codec APIs.
|
static class |
ExitableDirectoryReader.ExitableFilterAtomicReader
Wrapper class for another FilterAtomicReader.
|
class |
FieldFilterLeafReader
A
FilterLeafReader that exposes only a subset
of fields from the underlying wrapped reader. |
class |
FilterCodecReader
A
FilterCodecReader contains another CodecReader, which it
uses as its basic source of data, possibly transforming the data along the
way or providing additional functionality. |
class |
FilterLeafReader
A
FilterLeafReader contains another LeafReader, which it
uses as its basic source of data, possibly transforming the data along the
way or providing additional functionality. |
class |
MismatchedLeafReader
Shuffles field numbers around to try to trip bugs where field numbers
are assumed to always be consistent across segments.
|
class |
ParallelLeafReader
An
LeafReader which reads multiple, parallel indexes. |
class |
SegmentReader
IndexReader implementation over a single segment.
|
class |
SlowCompositeReaderWrapper
|
class |
SortingLeafReader
An
LeafReader which supports sorting documents by a given
Sort . |
Modifier and Type | Field and Description |
---|---|
protected LeafReader |
FilterLeafReader.in
The underlying LeafReader.
|
Modifier and Type | Method and Description |
---|---|
LeafReader |
FilterLeafReader.getDelegate()
Returns the wrapped
LeafReader . |
LeafReader[] |
ParallelLeafReader.getParallelReaders()
Returns the
LeafReader s that were passed on init. |
LeafReader |
LeafReaderContext.reader() |
static LeafReader |
FilterLeafReader.unwrap(LeafReader reader)
Get the wrapped instance by
reader as long as this reader is
an instance of FilterLeafReader . |
static LeafReader |
SlowCompositeReaderWrapper.wrap(IndexReader reader)
This method is sugar for getting an
LeafReader from
an IndexReader of any kind. |
abstract LeafReader |
FilterDirectoryReader.SubReaderWrapper.wrap(LeafReader reader)
Wrap one of the parent DirectoryReader's subreaders
|
LeafReader |
ExitableDirectoryReader.ExitableSubReaderWrapper.wrap(LeafReader reader) |
static LeafReader |
SortingLeafReader.wrap(LeafReader reader,
Sort sort)
Return a sorted view of
reader according to the order
defined by sort . |
Modifier and Type | Method and Description |
---|---|
static BinaryDocValues |
DocValues.getBinary(LeafReader reader,
String field)
Returns BinaryDocValues for the field, or
DocValues.emptyBinary() if it has none. |
static Bits |
DocValues.getDocsWithField(LeafReader reader,
String field)
Returns Bits for the field, or
Bits matching nothing if it has none. |
static NumericDocValues |
DocValues.getNumeric(LeafReader reader,
String field)
Returns NumericDocValues for the field, or
DocValues.emptyNumeric() if it has none. |
static SortedDocValues |
DocValues.getSorted(LeafReader reader,
String field)
Returns SortedDocValues for the field, or
DocValues.emptySorted() if it has none. |
static SortedNumericDocValues |
DocValues.getSortedNumeric(LeafReader reader,
String field)
Returns SortedNumericDocValues for the field, or
DocValues.emptySortedNumeric(int) if it has none. |
static SortedSetDocValues |
DocValues.getSortedSet(LeafReader reader,
String field)
Returns SortedSetDocValues for the field, or
DocValues.emptySortedSet() if it has none. |
static boolean |
SortingMergePolicy.isSorted(LeafReader reader,
Sort sort)
Returns
true if the given reader is sorted by the
sort given. |
static LeafReader |
FilterLeafReader.unwrap(LeafReader reader)
Get the wrapped instance by
reader as long as this reader is
an instance of FilterLeafReader . |
abstract void |
IndexWriter.IndexReaderWarmer.warm(LeafReader reader)
Invoked on the
LeafReader for the newly
merged segment, before that segment is made visible
to near-real-time readers. |
void |
SimpleMergedSegmentWarmer.warm(LeafReader reader) |
abstract LeafReader |
FilterDirectoryReader.SubReaderWrapper.wrap(LeafReader reader)
Wrap one of the parent DirectoryReader's subreaders
|
static CodecReader |
SlowCodecReaderWrapper.wrap(LeafReader reader)
Returns a
CodecReader view of reader. |
LeafReader |
ExitableDirectoryReader.ExitableSubReaderWrapper.wrap(LeafReader reader) |
static LeafReader |
SortingLeafReader.wrap(LeafReader reader,
Sort sort)
Return a sorted view of
reader according to the order
defined by sort . |
Constructor and Description |
---|
AllDeletedFilterReader(LeafReader in) |
AssertingLeafReader(LeafReader in) |
DirectoryReader(Directory directory,
LeafReader[] segmentReaders)
Expert: Constructs a
DirectoryReader on the given subReaders. |
ExitableFilterAtomicReader(LeafReader in,
QueryTimeout queryTimeout)
Constructor
|
FieldFilterLeafReader(LeafReader in,
Set<String> fields,
boolean negate) |
FilterLeafReader(LeafReader in)
Construct a FilterLeafReader based on the specified base reader.
|
MismatchedLeafReader(LeafReader in,
Random random)
Creates a new reader which will renumber fields in
in |
ParallelLeafReader(boolean closeSubReaders,
LeafReader... readers)
Create a ParallelLeafReader based on the provided
readers.
|
ParallelLeafReader(boolean closeSubReaders,
LeafReader[] readers,
LeafReader[] storedFieldsReaders)
Expert: create a ParallelLeafReader based on the provided
readers and storedFieldReaders; when a document is
loaded, only storedFieldsReaders will be used.
|
ParallelLeafReader(boolean closeSubReaders,
LeafReader[] readers,
LeafReader[] storedFieldsReaders)
Expert: create a ParallelLeafReader based on the provided
readers and storedFieldReaders; when a document is
loaded, only storedFieldsReaders will be used.
|
ParallelLeafReader(LeafReader... readers)
Create a ParallelLeafReader based on the provided
readers; auto-closes the given readers on
IndexReader.close() . |
Modifier and Type | Method and Description |
---|---|
protected DocIdSet |
CachingWrapperQuery.cacheImpl(DocIdSetIterator iterator,
LeafReader reader)
Default cache implementation: uses
RoaringDocIdSet . |
protected DocIdSet |
LRUFilterCache.cacheImpl(DocIdSetIterator iterator,
LeafReader reader)
Deprecated.
Default cache implementation: uses
RoaringDocIdSet . |
protected DocIdSet |
CachingWrapperFilter.cacheImpl(DocIdSetIterator iterator,
LeafReader reader)
Deprecated.
Default cache implementation: uses
RoaringDocIdSet . |
protected DocIdSet |
LRUQueryCache.cacheImpl(DocIdSetIterator iterator,
LeafReader reader)
Default cache implementation: uses
RoaringDocIdSet . |
protected DocIdSet |
LRUFilterCache.docIdSetToCache(DocIdSet docIdSet,
LeafReader reader)
Deprecated.
Provide the DocIdSet to be cached, using the DocIdSet provided
by the wrapped Filter.
|
protected DocIdSet |
CachingWrapperFilter.docIdSetToCache(DocIdSet docIdSet,
LeafReader reader)
Deprecated.
Provide the DocIdSet to be cached, using the DocIdSet provided
by the wrapped Filter.
|
Modifier and Type | Class and Description |
---|---|
class |
TermVectorLeafReader
Wraps a Terms with a
LeafReader , typically from term vectors. |
Constructor and Description |
---|
CompletionScorer(CompletionWeight weight,
NRTSuggester suggester,
LeafReader reader,
Bits filterDocs,
boolean filtered,
Automaton automaton)
Creates a scorer for a field-specific
suggester scoped by acceptDocs |
Modifier and Type | Method and Description |
---|---|
ShapeFieldCache<T> |
ShapeFieldCacheProvider.getCache(LeafReader reader) |
Modifier and Type | Class and Description |
---|---|
class |
UninvertingReader
A FilterReader that exposes indexed values as if they also had
docvalues.
|
Modifier and Type | Method and Description |
---|---|
TermsEnum |
DocTermOrds.getOrdTermsEnum(LeafReader reader)
Returns a TermsEnum that implements ord, or null if no terms in field.
|
SortedSetDocValues |
DocTermOrds.iterator(LeafReader reader)
Returns a SortedSetDocValues view of this instance
|
protected void |
DocTermOrds.uninvert(LeafReader reader,
Bits liveDocs,
BytesRef termPrefix)
Call this only once (if you subclass!)
|
Constructor and Description |
---|
DocTermOrds(LeafReader reader,
Bits liveDocs,
String field)
Inverts all terms
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
String field,
BytesRef termPrefix)
Inverts only terms starting w/ prefix
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
String field,
BytesRef termPrefix,
int maxTermDocFreq)
Inverts only terms starting w/ prefix, and only terms
whose docFreq (not taking deletions into account) is
<= maxTermDocFreq
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
String field,
BytesRef termPrefix,
int maxTermDocFreq,
int indexIntervalBits)
Inverts only terms starting w/ prefix, and only terms
whose docFreq (not taking deletions into account) is
<= maxTermDocFreq, with a custom indexing interval
(default is every 128nd term).
|
UninvertingReader(LeafReader in,
Map<String,UninvertingReader.Type> mapping)
Create a new UninvertingReader with the specified mapping
|
Modifier and Type | Method and Description |
---|---|
static void |
TestUtil.checkReader(LeafReader reader,
boolean crossCheckTermVectors) |
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.