Construct a MultiReader aggregating the named set of (sub)readers. Directory locking for delete, undeleteAll, and setNorm operations is left to the subreaders.

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public MultiReader(
	IndexReader[] subReaders,
	bool closeSubReaders
)
Visual Basic
Public Sub New ( _
	subReaders As IndexReader(), _
	closeSubReaders As Boolean _
)
Visual C++
public:
MultiReader(
	array<IndexReader^>^ subReaders, 
	bool closeSubReaders
)

Parameters

subReaders
Type: array<Lucene.Net.Index..::..IndexReader>[]()[][]
set of (sub)readers
closeSubReaders
Type: System..::..Boolean
indicates whether the subreaders should be closed when this MultiReader is closed

See Also