Search result objects now have a get_content method.

This was not necessary when searching in only one zim file as `url` was
enough to get the article (and so the content).

If we want to search in several zim in the same time, we need a way to get
the content directly.
This commit is contained in:
Matthieu Gautier
2017-07-05 11:28:08 +02:00
parent 4a51dd9e00
commit 8d39b0b343
4 changed files with 27 additions and 5 deletions

View File

@ -46,6 +46,7 @@ class Result
virtual std::string get_title() = 0;
virtual int get_score() = 0;
virtual std::string get_snippet() = 0;
virtual std::string get_content() = 0;
virtual int get_wordCount() = 0;
virtual int get_size() = 0;
};