Set the global humanReadableId.

This is needed by kiwix-lib to generate correct "next page" links.
This commit is contained in:
Matthieu Gautier 2017-11-27 12:45:41 +00:00
parent 9021f87715
commit 3df2fa708b

View File

@ -965,7 +965,7 @@ int main(int argc, char** argv)
readers[humanReadableId] = reader;
if ( reader->hasFulltextIndex()) {
kiwix::Searcher* searcher = new kiwix::Searcher();
kiwix::Searcher* searcher = new kiwix::Searcher(humanReadableId);
searcher->setProtocolPrefix(rootLocation + "/");
searcher->setSearchProtocolPrefix(rootLocation + "/" + "search?");
searcher->add_reader(reader, humanReadableId);