mirror of https://github.com/kiwix/libkiwix.git
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:
commit
8b90221866
|
@ -589,7 +589,8 @@ bool Reader::urlExists(const string& url) const
|
||||||
/* Does the ZIM file has a fulltext index */
|
/* Does the ZIM file has a fulltext index */
|
||||||
bool Reader::hasFulltextIndex() const
|
bool Reader::hasFulltextIndex() const
|
||||||
{
|
{
|
||||||
return this->urlExists("/Z/fulltextIndex/xapian");
|
return ( this->urlExists("/Z/fulltextIndex/xapian")
|
||||||
|
&& !zimFileHandler->is_multiPart() );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Search titles by prefix */
|
/* Search titles by prefix */
|
||||||
|
|
Loading…
Reference in New Issue