diff --git a/src/common/kiwix/manager.cpp b/src/common/kiwix/manager.cpp index bf2726d41..45e1c282d 100644 --- a/src/common/kiwix/manager.cpp +++ b/src/common/kiwix/manager.cpp @@ -427,6 +427,10 @@ namespace kiwix { return false; } + bool Manager::setBookIndex(const string id, const string path) { + return this->setBookIndex(id, path, XAPIAN); + } + bool Manager::setBookPath(const string id, const string path) { std::vector::iterator itr; for ( itr = library.books.begin(); itr != library.books.end(); ++itr ) { diff --git a/src/common/kiwix/manager.h b/src/common/kiwix/manager.h index 6190a1c65..453ba9054 100644 --- a/src/common/kiwix/manager.h +++ b/src/common/kiwix/manager.h @@ -54,6 +54,7 @@ namespace kiwix { bool setCurrentBookId(const string id); string getCurrentBookId(); bool setBookIndex(const string id, const string path, const supportedIndexType type); + bool setBookIndex(const string id, const string path); bool setBookPath(const string id, const string path); string addBookFromPathAndGetId(const string pathToOpen, const string pathToSave = "", const string url = "", const bool checkMetaData = false);