Add SearchRenderer handles for libzim structures

Introduces a new member mp_search that houses the zim::Search object,
adds a new constructor for this purpose. This commit also add an
overload for getHtml that takes start and end integers as arguments
since they are not part of the search object we include.
This commit is contained in:
Maneesh P M
2021-05-28 12:37:43 +05:30
parent c046f64d83
commit bcece66960
4 changed files with 39 additions and 15 deletions

View File

@ -32,6 +32,8 @@
#include "tools/pathTools.h"
#include "tools/stringTools.h"
#include <zim/search.h>
using namespace std;
namespace kiwix
@ -142,6 +144,11 @@ class Searcher
*/
unsigned int getEstimatedResultCount();
/**
* Get a SearchResultSet object for current search
*/
zim::SearchResultSet getSearchResultSet();
unsigned int getResultStart() { return resultStart; }
unsigned int getResultEnd() { return resultEnd; }