Constructor MultiReader
MultiReader(IndexReader[])
Construct a MultiReader aggregating the named set of (sub)readers. Directory locking for delete, undeleteAll, and setNorm operations is left to the subreaders.
Note that all subreaders are closed if this Multireader is closed.
Declaration
public MultiReader(params IndexReader[] subReaders)
Parameters
Type | Name | Description |
---|---|---|
IndexReader[] | subReaders | set of (sub)readers |
MultiReader(IndexReader[], Boolean)
Construct a MultiReader aggregating the named set of (sub)readers. Directory locking for delete, undeleteAll, and setNorm operations is left to the subreaders.
Declaration
public MultiReader(IndexReader[] subReaders, bool closeSubReaders)
Parameters
Type | Name | Description |
---|---|---|
IndexReader[] | subReaders | set of (sub)readers |
System.Boolean | closeSubReaders | indicates whether the subreaders should be closed when this MultiReader is closed |