|
|
@ -949,10 +949,9 @@ int main(int argc, char** argv)
|
|
|
|
searchers[humanReadableId] = searcher;
|
|
|
|
searchers[humanReadableId] = searcher;
|
|
|
|
} else if ( !indexPath.empty() ) {
|
|
|
|
} else if ( !indexPath.empty() ) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
kiwix::Searcher* searcher = new kiwix::Searcher(indexPath, reader);
|
|
|
|
kiwix::Searcher* searcher = new kiwix::Searcher(indexPath, reader, humanReadableId);
|
|
|
|
searcher->setProtocolPrefix("/");
|
|
|
|
searcher->setProtocolPrefix("/");
|
|
|
|
searcher->setSearchProtocolPrefix("/search?");
|
|
|
|
searcher->setSearchProtocolPrefix("/search?");
|
|
|
|
searcher->setContentHumanReadableId(humanReadableId);
|
|
|
|
|
|
|
|
searchers[humanReadableId] = searcher;
|
|
|
|
searchers[humanReadableId] = searcher;
|
|
|
|
} catch (...) {
|
|
|
|
} catch (...) {
|
|
|
|
cerr << "Unable to open the search index '" << indexPath << "'."
|
|
|
|
cerr << "Unable to open the search index '" << indexPath << "'."
|
|
|
|