Apache Lucene.Net 2.1 Class Library API

IndexReader.IndexExists Method (Directory)

Returns

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

public static bool IndexExists(
   Directory directory
);

Parameters

directory
the directory to check for an index

Return Value

true
if an index exists;
false
otherwise

See Also

IndexReader Class | Lucene.Net.Index Namespace | IndexReader.IndexExists Overload List