Merge pull request #80 from kiwix/no_search_on_splitted

Claims that multi part zim has no embedded full text index.
This commit is contained in:
Matthieu Gautier 2017-08-15 14:33:35 -04:00 committed by GitHub
commit 8b90221866
1 changed files with 2 additions and 1 deletions

View File

@ -589,7 +589,8 @@ bool Reader::urlExists(const string& url) const
/* Does the ZIM file has a fulltext index */
bool Reader::hasFulltextIndex() const
{
return this->urlExists("/Z/fulltextIndex/xapian");
return ( this->urlExists("/Z/fulltextIndex/xapian")
&& !zimFileHandler->is_multiPart() );
}
/* Search titles by prefix */