Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.spans |
The calculus of spans.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseCompositeReader<R extends IndexReader>
Base class for implementing
CompositeReader s based on an array
of sub-readers. |
Modifier and Type | Class and Description |
---|---|
class |
BaseCompositeReader<R extends IndexReader>
Base class for implementing
CompositeReader s based on an array
of sub-readers. |
class |
CodecReader
LeafReader implemented by codec APIs.
|
class |
CompositeReader
Instances of this reader type can only
be used to get stored fields from the underlying LeafReaders,
but it is not possible to directly retrieve postings.
|
class |
DirectoryReader
DirectoryReader is an implementation of
CompositeReader
that can read indexes in a Directory . |
class |
ExitableDirectoryReader
The
ExitableDirectoryReader wraps a real index DirectoryReader and
allows for a QueryTimeout implementation object to be checked periodically
to see if the thread should exit or not. |
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 |
FilterDirectoryReader
A FilterDirectoryReader wraps another DirectoryReader, allowing implementations
to transform or extend it.
|
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 |
LeafReader
LeafReader is an abstract class, providing an interface for accessing an
index. |
class |
MultiReader
A
CompositeReader which reads multiple indexes, appending
their content. |
class |
ParallelCompositeReader
An
CompositeReader which reads multiple, parallel indexes. |
class |
ParallelLeafReader
An
LeafReader which reads multiple, parallel indexes. |
class |
SegmentReader
IndexReader implementation over a single segment.
|
class |
StandardDirectoryReader
Default implementation of
DirectoryReader . |
Modifier and Type | Method and Description |
---|---|
abstract IndexReader |
IndexReaderContext.reader()
Returns the
IndexReader , this context represents. |
Modifier and Type | Method and Description |
---|---|
protected abstract List<? extends IndexReader> |
CompositeReader.getSequentialSubReaders()
Expert: returns the sequential sub readers that this
reader is logically composed of.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
LeafReader.addCoreClosedListenerAsReaderClosedListener(IndexReader reader,
LeafReader.CoreClosedListener listener)
|
static BinaryDocValues |
MultiDocValues.getBinaryValues(IndexReader r,
String field)
Returns a BinaryDocValues for a reader's docvalues (potentially merging on-the-fly)
|
static int |
PointValues.getDocCount(IndexReader reader,
String field)
Return the cumulated number of docs that have points across all leaves
of the given
IndexReader . |
static Bits |
MultiDocValues.getDocsWithField(IndexReader r,
String field)
Returns a Bits for a reader's docsWithField (potentially merging on-the-fly)
|
static Fields |
MultiFields.getFields(IndexReader reader)
Returns a single
Fields instance for this
reader, merging fields/terms/docs/positions on the
fly. |
static Collection<String> |
MultiFields.getIndexedFields(IndexReader reader)
Call this to get the (merged) FieldInfos representing the
set of indexed fields only for a composite reader.
|
static Bits |
MultiFields.getLiveDocs(IndexReader reader)
Returns a single
Bits instance for this
reader, merging live Documents on the
fly. |
static byte[] |
PointValues.getMaxPackedValue(IndexReader reader,
String field)
Return the maximum packed values across all leaves of the given
IndexReader . |
static FieldInfos |
MultiFields.getMergedFieldInfos(IndexReader reader)
Call this to get the (merged) FieldInfos for a
composite reader.
|
static byte[] |
PointValues.getMinPackedValue(IndexReader reader,
String field)
Return the minimum packed values across all leaves of the given
IndexReader . |
static NumericDocValues |
MultiDocValues.getNormValues(IndexReader r,
String field)
Returns a NumericDocValues for a reader's norms (potentially merging on-the-fly).
|
static NumericDocValues |
MultiDocValues.getNumericValues(IndexReader r,
String field)
Returns a NumericDocValues for a reader's docvalues (potentially merging on-the-fly)
|
static SortedNumericDocValues |
MultiDocValues.getSortedNumericValues(IndexReader r,
String field)
Returns a SortedNumericDocValues for a reader's docvalues (potentially merging on-the-fly)
|
static SortedSetDocValues |
MultiDocValues.getSortedSetValues(IndexReader r,
String field)
Returns a SortedSetDocValues for a reader's docvalues (potentially doing extremely slow things).
|
static SortedDocValues |
MultiDocValues.getSortedValues(IndexReader r,
String field)
Returns a SortedDocValues for a reader's docvalues (potentially doing extremely slow things).
|
static PostingsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
String field,
BytesRef term)
Returns
PostingsEnum for the specified field and
term. |
static PostingsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
String field,
BytesRef term,
int flags)
Returns
PostingsEnum for the specified field and
term, with control over whether freqs are required. |
static PostingsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
String field,
BytesRef term)
Returns
PostingsEnum for the specified
field and term. |
static PostingsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
String field,
BytesRef term,
int flags)
Returns
PostingsEnum for the specified
field and term, with control over whether offsets and payloads are
required. |
static Terms |
MultiFields.getTerms(IndexReader r,
String field)
This method may return null if the field does not exist.
|
void |
IndexReader.ReaderClosedListener.onClose(IndexReader reader)
Invoked when the
IndexReader is closed. |
void |
IndexReader.registerParentReader(IndexReader reader)
Expert: This method is called by
IndexReader s which wrap other readers
(e.g. |
protected static void |
LeafReader.removeCoreClosedListenerAsReaderClosedListener(IndexReader reader,
LeafReader.CoreClosedListener listener)
Remove a
LeafReader.CoreClosedListener which has been added with
LeafReader.addCoreClosedListenerAsReaderClosedListener(IndexReader, CoreClosedListener) . |
static long |
PointValues.size(IndexReader reader,
String field)
Return the cumulated number of points across all leaves of the given
IndexReader . |
long |
IndexWriter.tryDeleteDocument(IndexReader readerIn,
int docID)
Expert: attempts to delete by document ID, as long as
the provided reader is a near-real-time reader (from
DirectoryReader.open(IndexWriter) ). |
Constructor and Description |
---|
BaseCompositeReader(R[] subReaders)
Constructs a
BaseCompositeReader on the given subReaders. |
MultiReader(IndexReader... subReaders)
Construct a MultiReader aggregating the named set of (sub)readers.
|
MultiReader(IndexReader[] subReaders,
boolean closeSubReaders)
Construct a MultiReader aggregating the named set of (sub)readers.
|
Modifier and Type | Method and Description |
---|---|
IndexReader |
IndexSearcher.getIndexReader()
Return the
IndexReader this searches. |
Modifier and Type | Method and Description |
---|---|
static IndexSearcher |
SearcherManager.getSearcher(SearcherFactory searcherFactory,
IndexReader reader,
IndexReader previousReader)
Expert: creates a searcher from the provided
IndexReader using the provided SearcherFactory . |
IndexSearcher |
SearcherFactory.newSearcher(IndexReader reader,
IndexReader previousReader)
Returns a new IndexSearcher over the given reader.
|
Query |
BlendedTermQuery.rewrite(IndexReader reader) |
Query |
DisjunctionMaxQuery.rewrite(IndexReader reader)
Optimize our representation and our subqueries representations
|
Query |
MultiPhraseQuery.rewrite(IndexReader reader) |
Query |
BoostQuery.rewrite(IndexReader reader) |
Query |
BooleanQuery.rewrite(IndexReader reader) |
Query |
Query.rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
Query |
NGramPhraseQuery.rewrite(IndexReader reader) |
Query |
PhraseQuery.rewrite(IndexReader reader) |
Query |
SynonymQuery.rewrite(IndexReader reader) |
Query |
ConstantScoreQuery.rewrite(IndexReader reader) |
Query |
MultiTermQuery.rewrite(IndexReader reader)
To rewrite to a simpler form, instead return a simpler
enum from
MultiTermQuery.getTermsEnum(Terms, AttributeSource) . |
Query |
TopTermsRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
Query |
ScoringRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
Query |
DocValuesRewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
abstract Query |
MultiTermQuery.RewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
Constructor and Description |
---|
IndexSearcher(IndexReader r)
Creates a searcher searching the provided index.
|
IndexSearcher(IndexReader r,
ExecutorService executor)
Runs searches for each segment separately, using the
provided ExecutorService.
|
Modifier and Type | Method and Description |
---|---|
Query |
SpanBoostQuery.rewrite(IndexReader reader) |
Query |
SpanMultiTermQueryWrapper.rewrite(IndexReader reader) |
Query |
SpanPositionCheckQuery.rewrite(IndexReader reader) |
Query |
SpanOrQuery.rewrite(IndexReader reader) |
Query |
SpanNearQuery.rewrite(IndexReader reader) |
Query |
FieldMaskingSpanQuery.rewrite(IndexReader reader) |
Query |
SpanNotQuery.rewrite(IndexReader reader) |
abstract SpanQuery |
SpanMultiTermQueryWrapper.SpanRewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
SpanQuery |
SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.