|
|
|
@ -72,9 +72,9 @@ int main(int argc, char **argv) {
|
|
|
|
/* Try to prepare the indexing */
|
|
|
|
/* Try to prepare the indexing */
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (backend == CLUCENE) {
|
|
|
|
if (backend == CLUCENE) {
|
|
|
|
indexer = new kiwix::XapianIndexer(zimFilePath, indexPath);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
indexer = new kiwix::CluceneIndexer(zimFilePath, indexPath);
|
|
|
|
indexer = new kiwix::CluceneIndexer(zimFilePath, indexPath);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
indexer = new kiwix::XapianIndexer(zimFilePath, indexPath);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (...) {
|
|
|
|
} catch (...) {
|
|
|
|
cerr << "Unable to index '" << zimFilePath << "'." << endl;
|
|
|
|
cerr << "Unable to index '" << zimFilePath << "'." << endl;
|
|
|
|
|