Returns
CopyC#
true
if an index exists at the specified directory. If the directory does not exist or if there is no index in it.

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

Syntax

C#
public static bool IndexExists(
	Directory directory
)
Visual Basic
Public Shared Function IndexExists ( _
	directory As Directory _
) As Boolean
Visual C++
public:
static bool IndexExists(
	Directory^ directory
)

Parameters

directory
Type: Lucene.Net.Store..::..Directory
the directory to check for an index

Return Value

CopyC#
true
if an index exists;
CopyC#
false
otherwise

See Also