|
|
@ -503,12 +503,10 @@ int main(int argc, char **argv) {
|
|
|
|
} else if (!indexPath.empty()) {
|
|
|
|
} else if (!indexPath.empty()) {
|
|
|
|
vector<string> booksIds = libraryManager.getBooksIds();
|
|
|
|
vector<string> booksIds = libraryManager.getBooksIds();
|
|
|
|
kiwix::supportedIndexType indexType = kiwix::UNKNOWN;
|
|
|
|
kiwix::supportedIndexType indexType = kiwix::UNKNOWN;
|
|
|
|
bool hasSearchIndex = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Try with the XapianSearcher */
|
|
|
|
/* Try with the XapianSearcher */
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
new kiwix::XapianSearcher(indexPath);
|
|
|
|
new kiwix::XapianSearcher(indexPath);
|
|
|
|
hasSearchIndex = true;
|
|
|
|
|
|
|
|
indexType = kiwix::XAPIAN;
|
|
|
|
indexType = kiwix::XAPIAN;
|
|
|
|
} catch (...) {
|
|
|
|
} catch (...) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|