Reads commitUserData, previously passed to {@link IndexWriter#Commit(Map)}, from current index segments file. This will return null if {@link IndexWriter#Commit(Map)} has never been called for this index.

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

Syntax

C#
public static IDictionary<string, string> GetCommitUserData(
	Directory directory
)
Visual Basic
Public Shared Function GetCommitUserData ( _
	directory As Directory _
) As IDictionary(Of String, String)
Visual C++
public:
static IDictionary<String^, String^>^ GetCommitUserData(
	Directory^ directory
)

Parameters

directory
Type: Lucene.Net.Store..::..Directory
where the index resides.

Return Value

commit userData.

See Also