mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #537 from kiwix/search_iterator_api_rename
Update libkiwix with search iterator rename in libzim
This commit is contained in:
commit
9c0ae835e2
|
@ -507,9 +507,9 @@ bool Reader::searchSuggestionsSmart(const string& prefix,
|
|||
current != suggestions.end();
|
||||
current++) {
|
||||
std::vector<std::string> suggestion;
|
||||
suggestion.push_back(current->getTitle());
|
||||
suggestion.push_back(current->getPath());
|
||||
suggestion.push_back(kiwix::normalize(current->getTitle()));
|
||||
suggestion.push_back(current.getTitle());
|
||||
suggestion.push_back(current.getPath());
|
||||
suggestion.push_back(kiwix::normalize(current.getTitle()));
|
||||
results.push_back(suggestion);
|
||||
}
|
||||
retVal = true;
|
||||
|
|
|
@ -235,19 +235,19 @@ _Result::_Result(zim::SearchResultSet::iterator iterator)
|
|||
|
||||
std::string _Result::get_url()
|
||||
{
|
||||
return iterator.get_path();
|
||||
return iterator.getPath();
|
||||
}
|
||||
std::string _Result::get_title()
|
||||
{
|
||||
return iterator.get_title();
|
||||
return iterator.getTitle();
|
||||
}
|
||||
int _Result::get_score()
|
||||
{
|
||||
return iterator.get_score();
|
||||
return iterator.getScore();
|
||||
}
|
||||
std::string _Result::get_snippet()
|
||||
{
|
||||
return iterator.get_snippet();
|
||||
return iterator.getSnippet();
|
||||
}
|
||||
std::string _Result::get_content()
|
||||
{
|
||||
|
@ -255,15 +255,15 @@ std::string _Result::get_content()
|
|||
}
|
||||
int _Result::get_size()
|
||||
{
|
||||
return iterator.get_size();
|
||||
return iterator.getSize();
|
||||
}
|
||||
int _Result::get_wordCount()
|
||||
{
|
||||
return iterator.get_wordCount();
|
||||
return iterator.getWordCount();
|
||||
}
|
||||
int _Result::get_readerIndex()
|
||||
{
|
||||
return iterator.get_fileIndex();
|
||||
return iterator.getFileIndex();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue