From db246168b1bd7b048ccdaeb0db2cefe81b1e8fa9 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Sat, 30 Oct 2010 21:30:29 +0000 Subject: [PATCH] + stub of the cluceneindexer class --- src/common/kiwix/cluceneIndexer.cpp | 22 ++++++++++++++++++ src/common/kiwix/cluceneIndexer.h | 35 +++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 src/common/kiwix/cluceneIndexer.cpp create mode 100644 src/common/kiwix/cluceneIndexer.h diff --git a/src/common/kiwix/cluceneIndexer.cpp b/src/common/kiwix/cluceneIndexer.cpp new file mode 100644 index 00000000..813500be --- /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 00000000..28d1aa38 --- /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