Merge pull request #67 from kiwix/no_globalsearch_on_zim

Do not do globalSearch if the zim file has no full text index.
This commit is contained in:
Matthieu Gautier 2017-08-15 14:54:35 -04:00 committed by GitHub
commit 4a1b9cbfa9

View File

@ -956,7 +956,10 @@ int main(int argc, char** argv)
} catch (...) {
cerr << "Unable to open the search index '" << indexPath << "'."
<< endl;
searchers[humanReadableId] = nullptr;
}
} else {
searchers[humanReadableId] = nullptr;
}
}
}