/* Read the stopwords */ void Indexer::readStopWords(const string languageCode) { std::string stopWord; std::istringstream file(getResourceAsString("stopwords/" + languageCode)); this->stopWords.clear(); while (getline(file, stopWord, '\n')) { this->stopWords.push_back(stopWord); } }
/* Constructor */ Searcher::Searcher() : searchPattern(""), protocolPrefix("zim://"), searchProtocolPrefix("search://?"), resultCountPerPage(0), estimatedResultCount(0), resultStart(0), resultEnd(0) { template_ct2 = getResourceAsString("results.ct2"); loadICUExternalTables(); }