Read a particular segmentFileName. Note that this may throw an IOException if a commit is in process.

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

Syntax

C#
public void Read(
	Directory directory,
	string segmentFileName
)
Visual Basic
Public Sub Read ( _
	directory As Directory, _
	segmentFileName As String _
)
Visual C++
public:
void Read(
	Directory^ directory, 
	String^ segmentFileName
)

Parameters

directory
Type: Lucene.Net.Store..::..Directory
-- directory containing the segments file
segmentFileName
Type: System..::..String
-- segment file to load

See Also