mirror of https://github.com/kiwix/libkiwix.git
+ stub of new functions
This commit is contained in:
parent
13a7d481ca
commit
e6299aaeab
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue