mirror of https://github.com/kiwix/libkiwix.git
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:
parent
ebd3f622ff
commit
5c2280e7c7
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue