mirror of https://github.com/kiwix/libkiwix.git
+ stub of the cluceneindexer class
This commit is contained in:
parent
c003035a5e
commit
db246168b1
|
@ -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() {
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
Loading…
Reference in New Issue