Package | Description |
---|---|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
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.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.
|
Modifier and Type | Method and Description |
---|---|
protected Scorer |
LatLonShapeQuery.RelationScorerSupplier.getIntersectsScorer(LatLonShapeQuery query,
LeafReader reader,
Weight weight,
DocIdSetBuilder docIdSetBuilder,
float boost,
ScoreMode scoreMode)
returns a Scorer for INTERSECT queries that uses a sparse bitset
|
(package private) abstract SortedSetDocValues |
SortedSetDocValuesRangeQuery.getValues(LeafReader reader,
java.lang.String field) |
(package private) abstract SortedNumericDocValues |
SortedNumericDocValuesRangeQuery.getValues(LeafReader reader,
java.lang.String field) |
Modifier and Type | Class and Description |
---|---|
class |
CodecReader
LeafReader implemented by codec APIs.
|
static class |
ExitableDirectoryReader.ExitableFilterAtomicReader
Wrapper class for another FilterAtomicReader.
|
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. |
(package private) class |
MergeReaderWrapper
This is a hack to make index sorting fast, with a
LeafReader that always returns merge instances when you ask for the codec readers. |
private static class |
MultiPassIndexSplitter.FakeDeleteLeafIndexReader |
class |
ParallelLeafReader
An
LeafReader which reads multiple, parallel indexes. |
private static class |
PKIndexSplitter.DocumentFilteredLeafIndexReader |
class |
SegmentReader
IndexReader implementation over a single segment.
|
(package private) static class |
SoftDeletesDirectoryReaderWrapper.SoftDeletesFilterCodecReader |
(package private) static class |
SoftDeletesDirectoryReaderWrapper.SoftDeletesFilterLeafReader |
(package private) 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.
|
private LeafReader[] |
ParallelLeafReader.parallelReaders |
private LeafReader |
SoftDeletesDirectoryReaderWrapper.SoftDeletesFilterLeafReader.reader |
private LeafReader |
SoftDeletesDirectoryReaderWrapper.SoftDeletesFilterCodecReader.reader |
private LeafReader |
LeafReaderContext.reader |
private LeafReader[] |
ParallelLeafReader.storedFieldsReaders |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<LeafReader> |
ParallelLeafReader.completeReaderSet |
private java.util.SortedMap<java.lang.String,LeafReader> |
ParallelLeafReader.fieldToReader |
private java.util.Map<IndexReader.CacheKey,LeafReader> |
SoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper.mapping |
private java.util.Map<java.lang.String,LeafReader> |
ParallelLeafReader.termsFieldToReader |
private java.util.SortedMap<java.lang.String,LeafReader> |
ParallelLeafReader.tvFieldToReader |
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. |
private static LeafReader[] |
ParallelCompositeReader.prepareLeafReaders(CompositeReader[] readers,
CompositeReader[] storedFieldsReaders) |
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 |
SoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper.wrap(LeafReader reader) |
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 . |
(package private) static LeafReader |
SortingLeafReader.wrap(LeafReader reader,
Sorter.DocMap docMap)
Expert: same as
SortingLeafReader.wrap(org.apache.lucene.index.LeafReader, Sort) but operates directly on a Sorter.DocMap . |
(package private) static LeafReader |
SoftDeletesDirectoryReaderWrapper.wrap(LeafReader reader,
java.lang.String field) |
protected LeafReader[] |
SoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper.wrap(java.util.List<? extends LeafReader> readers) |
protected LeafReader[] |
FilterDirectoryReader.SubReaderWrapper.wrap(java.util.List<? extends LeafReader> readers)
Wraps a list of LeafReaders
|
Modifier and Type | Method and Description |
---|---|
private static boolean |
SoftDeletesDirectoryReaderWrapper.assertDocCounts(int expectedNumDocs,
int numSoftDeletes,
LeafReader reader) |
private static void |
DocValues.checkField(LeafReader in,
java.lang.String field,
DocValuesType... expected) |
static BinaryDocValues |
DocValues.getBinary(LeafReader reader,
java.lang.String field)
Returns BinaryDocValues for the field, or
DocValues.emptyBinary() if it has none. |
(package private) static Sorter.DocComparator |
Sorter.getDocComparator(LeafReader reader,
SortField sortField) |
static NumericDocValues |
DocValues.getNumeric(LeafReader reader,
java.lang.String field)
Returns NumericDocValues for the field, or
DocValues.emptyNumeric() if it has none. |
(package private) static NumericDocValues |
Sorter.getOrWrapNumeric(LeafReader reader,
SortField sortField)
Wraps a
SortedNumericDocValues as a single-valued view if the field is an instance of SortedNumericSortField ,
returns NumericDocValues for the field otherwise. |
(package private) static SortedDocValues |
Sorter.getOrWrapSorted(LeafReader reader,
SortField sortField)
Wraps a
SortedSetDocValues as a single-valued view if the field is an instance of SortedSetSortField ,
returns SortedDocValues for the field otherwise. |
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. |
private static PointsReader |
SlowCodecReaderWrapper.pointValuesToReader(LeafReader reader) |
private static DocValuesProducer |
SlowCodecReaderWrapper.readerToDocValuesProducer(LeafReader reader) |
private static FieldsProducer |
SlowCodecReaderWrapper.readerToFieldsProducer(LeafReader reader) |
private static NormsProducer |
SlowCodecReaderWrapper.readerToNormsProducer(LeafReader reader) |
private static StoredFieldsReader |
SlowCodecReaderWrapper.readerToStoredFieldsReader(LeafReader reader) |
private static TermVectorsReader |
SlowCodecReaderWrapper.readerToTermVectorsReader(LeafReader reader) |
(package private) Sorter.DocMap |
Sorter.sort(LeafReader reader)
Returns a mapping from the old document ID to its new location in the
sorted index.
|
static LeafReader |
FilterLeafReader.unwrap(LeafReader reader)
Get the wrapped instance by
reader as long as this reader is
an instance of FilterLeafReader . |
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) |
LeafReader |
SoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper.wrap(LeafReader reader) |
abstract LeafReader |
FilterDirectoryReader.SubReaderWrapper.wrap(LeafReader reader)
Wrap one of the parent DirectoryReader's subreaders
|
LeafReader |
ExitableDirectoryReader.ExitableSubReaderWrapper.wrap(LeafReader reader) |
static CodecReader |
SlowCodecReaderWrapper.wrap(LeafReader reader)
Returns a
CodecReader view of reader. |
static LeafReader |
SortingLeafReader.wrap(LeafReader reader,
Sort sort)
Return a sorted view of
reader according to the order
defined by sort . |
(package private) static LeafReader |
SortingLeafReader.wrap(LeafReader reader,
Sorter.DocMap docMap)
Expert: same as
SortingLeafReader.wrap(org.apache.lucene.index.LeafReader, Sort) but operates directly on a Sorter.DocMap . |
(package private) static LeafReader |
SoftDeletesDirectoryReaderWrapper.wrap(LeafReader reader,
java.lang.String field) |
Modifier and Type | Method and Description |
---|---|
static DirectoryReader |
StandardDirectoryReader.open(Directory directory,
SegmentInfos infos,
java.util.List<? extends LeafReader> oldReaders,
java.util.Map<java.lang.String,java.lang.String> readerAttributes)
This constructor is only used for
StandardDirectoryReader.doOpenIfChanged(SegmentInfos) , as well as NRT replication. |
protected LeafReader[] |
SoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper.wrap(java.util.List<? extends LeafReader> readers) |
protected LeafReader[] |
FilterDirectoryReader.SubReaderWrapper.wrap(java.util.List<? extends LeafReader> readers)
Wraps a list of LeafReaders
|
Constructor and Description |
---|
DirectoryReader(Directory directory,
LeafReader[] segmentReaders)
Expert: Constructs a
DirectoryReader on the given subReaders. |
ExitableFilterAtomicReader(LeafReader in,
QueryTimeout queryTimeout)
Constructor
|
FilterLeafReader(LeafReader in)
Construct a FilterLeafReader based on the specified base reader.
|
LeafReaderContext(CompositeReaderContext parent,
LeafReader reader,
int ord,
int docBase,
int leafOrd,
int leafDocBase)
Creates a new
LeafReaderContext |
LeafReaderContext(LeafReader leafReader) |
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() . |
SoftDeletesFilterLeafReader(LeafReader reader,
FixedBitSet bits,
int numDocs) |
SortingLeafReader(LeafReader in,
Sorter.DocMap docMap) |
StandardDirectoryReader(Directory directory,
LeafReader[] readers,
IndexWriter writer,
SegmentInfos sis,
boolean applyAllDeletes,
boolean writeAllDeletes,
java.util.Map<java.lang.String,java.lang.String> readerAttributes)
called only from static open() methods
|
TermDocsIterator(LeafReader reader,
boolean sortedTerms) |
Constructor and Description |
---|
SoftDeletesSubReaderWrapper(java.util.Map<IndexReader.CacheKey,LeafReader> oldReadersCache,
java.lang.String field) |
Modifier and Type | Class and Description |
---|---|
private class |
MemoryIndex.MemoryIndexReader
Search support for Lucene framework integration; implements all methods
required by the Lucene IndexReader contracts.
|
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. |
private boolean |
TermQuery.TermWeight.termNotInReader(LeafReader reader,
Term term) |
private static boolean |
PhraseQuery.termNotInReader(LeafReader reader,
Term term) |
Constructor and Description |
---|
LeafSimScorer(Similarity.SimScorer scorer,
LeafReader reader,
java.lang.String field,
boolean needsScores)
Sole constructor: Score documents of
reader with scorer . |
MultiNormsLeafSimScorer(Similarity.SimScorer scorer,
LeafReader reader,
java.util.Collection<BM25FQuery.FieldAndWeight> normFields,
boolean needsScores)
Sole constructor: Score documents of
reader with scorer . |
Modifier and Type | Class and Description |
---|---|
class |
TermVectorLeafReader
Wraps a Terms with a
LeafReader , typically from term vectors. |
(package private) static class |
WeightedSpanTermExtractor.DelegatingLeafReader |
Modifier and Type | Field and Description |
---|---|
private LeafReader |
WeightedSpanTermExtractor.internalReader |
Constructor and Description |
---|
DelegatingLeafReader(LeafReader in) |
Modifier and Type | Method and Description |
---|---|
R |
DocValuesTermsCollector.Function.apply(LeafReader t) |
Modifier and Type | Class and Description |
---|---|
class |
OverlaySingleDocTermsLeafReader
Overlays a 2nd LeafReader for the terms of one field, otherwise the primary reader is
consulted.
|
private static class |
PhraseHelper.SingleFieldWithOffsetsFilterLeafReader
Needed to support the ability to highlight a query irrespective of the field a query refers to
(aka requireFieldMatch=false).
|
(package private) class |
TermVectorFilteredLeafReader
A filtered LeafReader that only includes the terms that are also in a provided set of terms.
|
private static class |
UnifiedHighlighter.TermVectorReusingLeafReader
Wraps an IndexReader that remembers/caches the last call to
IndexReader.getTermVectors(int) so that
if the next call has the same ID, then it is reused. |
Modifier and Type | Field and Description |
---|---|
private LeafReader |
OverlaySingleDocTermsLeafReader.in2 |
private LeafReader |
MemoryIndexOffsetStrategy.memIndexLeafReader |
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) |
OffsetsEnum |
MemoryIndexOffsetStrategy.getOffsetsEnum(LeafReader reader,
int docId,
java.lang.String content) |
OffsetsEnum |
TokenStreamOffsetStrategy.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) |
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 |
NoOpOffsetStrategy.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) |
SingleFieldWithOffsetsFilterLeafReader(LeafReader in,
java.lang.String fieldName) |
TermVectorFilteredLeafReader(LeafReader baseLeafReader,
Terms filterTerms,
java.lang.String fieldFilter)
Construct a FilterLeafReader based on the specified base reader.
|
TermVectorReusingLeafReader(LeafReader in) |