From 7251ea83d18a99f058aeb9c446a7d5769c251fdb Mon Sep 17 00:00:00 2001 From: kelson42 Date: Sat, 30 Oct 2010 21:38:29 +0000 Subject: [PATCH] + update the code to deal with the new Indexer classes --- src/indexer/kiwix-index.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/indexer/kiwix-index.cpp b/src/indexer/kiwix-index.cpp index 524df38..5e9ca2c 100644 --- a/src/indexer/kiwix-index.cpp +++ b/src/indexer/kiwix-index.cpp @@ -1,6 +1,7 @@ #include #include -#include +#include +#include void usage() { cout << "Usage: kiwix-index [--verbose|-v] ZIM_PATH INDEX_PATH" << endl; @@ -14,7 +15,7 @@ int main(int argc, char **argv) { char *xapianDirectoryPath = NULL; bool verboseFlag = false; int option_index = 0; - kiwix::Indexer *indexer = NULL; + kiwix::XapianIndexer *indexer = NULL; /* Argument parsing */ while (42) { @@ -57,7 +58,7 @@ int main(int argc, char **argv) { /* Try to prepare the indexing */ try { - indexer = new kiwix::Indexer(zimFilePath, xapianDirectoryPath); + indexer = new kiwix::XapianIndexer(zimFilePath, xapianDirectoryPath); } catch (...) { cerr << "Unable to index '" << zimFilePath << "'." << endl; exit(1);