diff -r d4d56f5e7c55 -r 65456528cac2 searchengine/oss/cl/clucene/src/clucene/index/indexreader.h --- a/searchengine/oss/cl/clucene/src/clucene/index/indexreader.h Tue Oct 05 13:15:12 2010 +0530 +++ b/searchengine/oss/cl/clucene/src/clucene/index/indexreader.h Fri Oct 15 12:09:28 2010 +0530 @@ -306,6 +306,15 @@ * @throws IOException if there is a problem with accessing the index */ static bool indexExists(const CL_NS(store)::Directory* 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. + * @param directory the directory to check for an index + * @return true if an index exists; false otherwise + * @throws IOException if there is a problem with accessing the index + */ + bool indexExists(void); /** Returns the number of documents in this index. */ virtual int32_t numDocs() = 0;