Package | Description |
---|---|
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.search.uhighlight |
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.
|
org.apache.lucene.spatial.util |
Various spatial utilities.
|
org.apache.lucene.util |
Some utility classes.
|
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.
|
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 . |
LeafReader |
ExitableDirectoryReader.ExitableSubReaderWrapper.wrap(LeafReader reader) |
abstract LeafReader |
FilterDirectoryReader.SubReaderWrapper.wrap(LeafReader reader)
Wrap one of the parent DirectoryReader's subreaders
|
protected LeafReader[] |
FilterDirectoryReader.SubReaderWrapper.wrap(java.util.List<? extends LeafReader> readers)
Wraps a list of LeafReaders
|
Modifier and Type | Method and Description |
---|---|
static BinaryDocValues |
DocValues.getBinary(LeafReader reader,
java.lang.String field)
Returns BinaryDocValues for the field, or
DocValues.emptyBinary() if it has none. |
static NumericDocValues |
DocValues.getNumeric(LeafReader reader,
java.lang.String field)
Returns NumericDocValues for the field, or
DocValues.emptyNumeric() if it has none. |
static SortedDocValues |
DocValues.getSorted(LeafReader reader,
java.lang.String field)
Returns SortedDocValues for the field, or
DocValues.emptySorted() if it has none. |
static SortedNumericDocValues |
DocValues.getSortedNumeric(LeafReader reader,
java.lang.String field)
Returns SortedNumericDocValues for the field, or
DocValues.emptySortedNumeric(int) if it has none. |
static SortedSetDocValues |
DocValues.getSortedSet(LeafReader reader,
java.lang.String field)
Returns SortedSetDocValues for the field, or
DocValues.emptySortedSet() if it has none. |
static LeafReader |
FilterLeafReader.unwrap(LeafReader reader)
Get the wrapped instance by
reader as long as this reader is
an instance of FilterLeafReader . |
void |
SimpleMergedSegmentWarmer.warm(LeafReader reader) |
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. |
static CodecReader |
SlowCodecReaderWrapper.wrap(LeafReader reader)
Returns a
CodecReader view of reader. |
LeafReader |
ExitableDirectoryReader.ExitableSubReaderWrapper.wrap(LeafReader reader) |
abstract LeafReader |
FilterDirectoryReader.SubReaderWrapper.wrap(LeafReader reader)
Wrap one of the parent DirectoryReader's subreaders
|
Modifier and Type | Method and Description |
---|---|
static DirectoryReader |
StandardDirectoryReader.open(Directory directory,
SegmentInfos infos,
java.util.List<? extends LeafReader> oldReaders)
This constructor is only used for
StandardDirectoryReader.doOpenIfChanged(SegmentInfos) , as well as NRT replication. |
protected LeafReader[] |
FilterDirectoryReader.SubReaderWrapper.wrap(java.util.List<? extends LeafReader> readers)
Wraps a list of LeafReaders
|
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,
java.util.Set<java.lang.String> fields,
boolean negate) |
FilterLeafReader(LeafReader in)
Construct a FilterLeafReader based on the specified base reader.
|
MismatchedLeafReader(LeafReader in,
java.util.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 |
---|---|
static DocIdSetIterator |
DocValuesFieldExistsQuery.getDocValuesDocIdSetIterator(java.lang.String field,
LeafReader reader)
Returns a
DocIdSetIterator from the given field or null if the field doesn't exist
in the reader or if the reader has no doc values for the field. |
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 | Class and Description |
---|---|
class |
OverlaySingleDocTermsLeafReader
Overlays a 2nd LeafReader for the terms of one field, otherwise the primary reader is
consulted.
|
Modifier and Type | Method and Description |
---|---|
protected OffsetsEnum |
FieldOffsetStrategy.createOffsetsEnumFromReader(LeafReader leafReader,
int doc) |
void |
PhraseHelper.createOffsetsEnumsForSpans(LeafReader leafReader,
int docId,
java.util.List<OffsetsEnum> results)
Given the internal SpanQueries, produce a number of OffsetsEnum into the
results param. |
protected void |
FieldOffsetStrategy.createOffsetsEnumsWeightMatcher(LeafReader _leafReader,
int docId,
java.util.List<OffsetsEnum> results) |
abstract OffsetsEnum |
FieldOffsetStrategy.getOffsetsEnum(LeafReader reader,
int docId,
java.lang.String content)
The primary method -- return offsets for highlightable words in the specified document.
|
OffsetsEnum |
TokenStreamOffsetStrategy.getOffsetsEnum(LeafReader reader,
int docId,
java.lang.String content) |
OffsetsEnum |
NoOpOffsetStrategy.getOffsetsEnum(LeafReader reader,
int docId,
java.lang.String content) |
OffsetsEnum |
MemoryIndexOffsetStrategy.getOffsetsEnum(LeafReader reader,
int docId,
java.lang.String content) |
OffsetsEnum |
PostingsWithTermVectorsOffsetStrategy.getOffsetsEnum(LeafReader leafReader,
int docId,
java.lang.String content) |
OffsetsEnum |
PostingsOffsetStrategy.getOffsetsEnum(LeafReader reader,
int docId,
java.lang.String content) |
OffsetsEnum |
TermVectorOffsetStrategy.getOffsetsEnum(LeafReader reader,
int docId,
java.lang.String content) |
java.lang.Object |
FieldHighlighter.highlightFieldForDoc(LeafReader reader,
int docId,
java.lang.String content)
The primary method -- highlight this doc, assuming a specific field and given this content.
|
Constructor and Description |
---|
OverlaySingleDocTermsLeafReader(LeafReader in,
LeafReader in2,
java.lang.String in2Field,
int in2TargetDocId) |
Modifier and Type | Method and Description |
---|---|
ShapeFieldCache<T> |
ShapeFieldCacheProvider.getCache(LeafReader reader) |
Modifier and Type | Method and Description |
---|---|
static LeafReader |
LuceneTestCase.getOnlyLeafReader(IndexReader reader)
Some tests expect the directory to contain a single segment, and want to
do tests on that segment's reader.
|
Modifier and Type | Method and Description |
---|---|
static void |
TestUtil.checkReader(LeafReader reader,
boolean crossCheckTermVectors) |
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.