Method Read
Read(Directory, String)
Read a particular segmentFileName
. Note that this may
throw an
Declaration
public void Read(Directory directory, string segmentFileName)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | directory containing the segments file |
System.String | segmentFileName | segment file to load |
Exceptions
Type | Condition |
---|---|
CorruptIndexException | if the index is corrupt |
Read(Directory)
Find the latest commit (segments_N file
) and
load all SegmentCommitInfos.
Declaration
public void Read(Directory directory)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory |