diff --git a/src/common/kiwix/cluceneIndexer.cpp b/src/common/kiwix/cluceneIndexer.cpp new file mode 100644 index 000000000..813500bea --- /dev/null +++ b/src/common/kiwix/cluceneIndexer.cpp @@ -0,0 +1,22 @@ +#include "cluceneIndexer.h" + +namespace kiwix { + + CluceneIndexer::CluceneIndexer(const string &zimFilePath, const string &cluceneDirectoryPath) : + Indexer(zimFilePath) { + } + + void CluceneIndexer::indexNextPercentPre() { + } + + void CluceneIndexer::indexNextArticle(string &url, string &title, string &unaccentedTitle, + string &keywords, string &content) { + + } + + void CluceneIndexer::indexNextPercentPost() { + } + + void CluceneIndexer::stopIndexing() { + } +} diff --git a/src/common/kiwix/cluceneIndexer.h b/src/common/kiwix/cluceneIndexer.h new file mode 100644 index 000000000..28d1aa389 --- /dev/null +++ b/src/common/kiwix/cluceneIndexer.h @@ -0,0 +1,35 @@ +#ifndef KIWIX_CLUCENE_INDEXER_H +#define KIWIX_CLUCENE_INDEXER_H + +#include +#include +#include +#include + +#include +#include +#include +#include +#include "clucene/myhtmlparse.h" +#include "indexer.h" + +using namespace std; + +namespace kiwix { + + class CluceneIndexer : public Indexer { + + public: + CluceneIndexer(const string &zimFilePath, const string &cluceneDirectoryPath); + + protected: + void indexNextPercentPre(); + void indexNextArticle(string &url, string &title, string &unaccentedTitle, + string &keywords, string &content); + void indexNextPercentPost(); + void stopIndexing(); + }; + +} + +#endif