Make the search_rendered handle multizim search.

This introduce a intermediate mustache object to store information
about the request made by the user.
This commit is contained in:
Matthieu Gautier
2022-03-22 16:38:47 +01:00
parent 39d0a56be8
commit 077ceac5a5
4 changed files with 12 additions and 11 deletions

View File

@ -81,9 +81,9 @@ class SearchRenderer
void setSearchPattern(const std::string& pattern);
/**
* Set the search content id.
* Set the book names used to do the search.
*/
void setSearchContent(const std::string& name);
void setSearchBookIds(const std::set<std::string>& bookIds);
/**
* Set protocol prefix.
@ -112,7 +112,7 @@ class SearchRenderer
zim::SearchResultSet m_srs;
NameMapper* mp_nameMapper;
Library* mp_library;
std::string searchContent;
std::set<std::string> searchBookIds;
std::string searchPattern;
std::string protocolPrefix;
std::string searchProtocolPrefix;