+ stub of new functions

This commit is contained in:
kelson42 2012-03-15 18:41:46 +00:00
parent 13a7d481ca
commit e6299aaeab
1 changed files with 28 additions and 4 deletions

View File

@ -41,6 +41,13 @@ namespace kiwix {
stepSize(0),
keywordsBoostFactor(3) {
this->setZimFilePath(zimFilePath);
/* Read the stopwords file */
//this->readStopWordsFile("/home/kelson/kiwix/moulinkiwix/stopwords/fr");
}
bool Indexer::setZimFilePath(const string &zimfilePath) {
/* Open the ZIM file */
this->zimFileHandler = new zim::File(zimFilePath);
@ -52,9 +59,26 @@ namespace kiwix {
/* Compute few things */
this->articleCount = this->zimFileHandler->getNamespaceCount('A');
this->stepSize = (float)this->articleCount / (float)100;
}
/* Read the stopwords file */
//this->readStopWordsFile("/home/kelson/kiwix/moulinkiwix/stopwords/fr");
bool Indexer::start() {
}
bool Indexer::stop() {
}
unsigned Indexer::isRunning() {
}
void Indexer::setCurrentArticleOffset(unsigned int offset) {
this->currentArticleOffset = offset;
}
unsigned int Indexer::getCurrentArticleOffset() {
return this->currentArticleOffset;
}
unsigned int Indexer::getProgression() {
}
/* Read the file containing the stopwords */