Claims that multi part zim has no embedded full text index.

We cannot search into an embedded fulltext index if the zim is multipart.
Instead of crashing, let's pretend we have no fulltext index.
This commit is contained in:
Matthieu Gautier 2017-08-13 11:20:31 -04:00
parent ebd3f622ff
commit 5c2280e7c7
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 */