3
0
Fork 0

Set the global humanReadableId.

This is needed by kiwix-lib to generate correct "next page" links.
better_search_tool
Matthieu Gautier 8 years ago
parent 9021f87715
commit 3df2fa708b

@ -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);

Loading…
Cancel
Save