DotLucene 1.4 API Documentation

IndexReader.IndexExists Method (String)

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

public static bool IndexExists(
   string 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