Re-add xapian searcher in kiwix-lib.

libzim only know how to read embedded full text index in a zim file.
This is nice as we want to embedded the full text index in zim file and
not have separated full text index.

However, we still have some zim+separated index we have to read.
So we have to support the search in separated index for a while.
This commit is contained in:
Matthieu Gautier
2017-05-24 16:07:46 +02:00
parent 0343c23f82
commit c44b2acb56
8 changed files with 53 additions and 31 deletions

View File

@ -53,7 +53,7 @@ namespace kiwix {
class Searcher {
public:
Searcher(Reader* reader);
Searcher(const string &xapianDirectoryPath, Reader* reader);
~Searcher();
void search(std::string &search, unsigned int resultStart,