+ stub of the cluceneindexer class

This commit is contained in:
kelson42 2010-10-30 21:30:29 +00:00
parent c003035a5e
commit db246168b1
2 changed files with 57 additions and 0 deletions

View File

@ -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() {
}
}

View File

@ -0,0 +1,35 @@
#ifndef KIWIX_CLUCENE_INDEXER_H
#define KIWIX_CLUCENE_INDEXER_H
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <unaccent.h>
#include <zim/file.h>
#include <zim/article.h>
#include <zim/fileiterator.h>
#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