Class ParallelReader
An IndexReader which reads multiple, parallel indexes. Each index added must have the same number of documents, but typically each contains different fields. Each document contains the union of the fields of all documents with the same document number. When searching, matches for a query term are from the first index added that has the field.
This is useful, e.g., with collections that have large fields which change rarely and small fields that change more frequently. The smaller fields may be re-indexed in a new index and both indexes may be searched together.
Warning: It is up to you to make sure all indexes are created and modified the same way. For example, if you add documents to one index, you need to add the same documents in the same order to the other indexes. Failure to do so will result in undefined behavior.
Inherited Members
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public class ParallelReader : IndexReader, IDisposable, ICloneable
Constructors
Name | Description |
---|---|
ParallelReader() | Construct a ParallelReader. Note that all subreaders are closed if this ParallelReader is closed.
|
ParallelReader(Boolean) | Construct a ParallelReader. |
Properties
Name | Description |
---|---|
HasDeletions | |
MaxDoc | |
Version | Not implemented. |
Methods
Name | Description |
---|---|
Add(IndexReader) | Add an IndexReader. |
Add(IndexReader, Boolean) | Add an IndexReader whose stored fields will not be returned. This can accellerate search when stored fields are only needed from a subset of the IndexReaders. |
Clone() | |
DocFreq(Term) | |
DoClose() | |
DoCommit(IDictionary<String, String>) | |
Document(Int32, FieldSelector) | |
DoDelete(Int32) | |
DoReopen(Boolean) | |
DoSetNorm(Int32, String, Byte) | |
DoUndeleteAll() | |
GetFieldNames(IndexReader.FieldOption) | |
GetSubReaders() | |
GetTermFreqVector(Int32, TermVectorMapper) | |
GetTermFreqVector(Int32, String) | |
GetTermFreqVector(Int32, String, TermVectorMapper) | |
GetTermFreqVectors(Int32) | |
HasNorms(String) | |
IsCurrent() | Checks recursively if all subreaders are up to date. |
IsDeleted(Int32) | |
IsOptimized() | Checks recursively if all subindexes are optimized |
Norms(String) | |
Norms(String, Byte[], Int32) | |
NumDocs() | |
Reopen() | Tries to reopen the subreaders.
A re-opened instance might share one or more subreaders with the old instance. Index modification operations result in undefined behavior when performed before the old instance is closed. (see Reopen()). If subreaders are shared, then the reference count of those readers is increased to ensure that the subreaders remain open until the last referring reader is closed. |
TermDocs() | |
TermDocs(Term) | |
TermPositions() | |
TermPositions(Term) | |
Terms() | |
Terms(Term) |