diff --git a/src/reader.cpp b/src/reader.cpp index 5dfaaf15f..862f61bd5 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -390,18 +390,7 @@ bool Reader::hasFulltextIndex() const return false; } - for(auto path: {"Z//fulltextIndex/xapian", "X/fulltext/xapian"}) { - try { - auto entry = zimArchive->getEntryByPath(path); - auto item = entry.getItem(true); - auto accessInfo = item.getDirectAccessInformation(); - if (accessInfo.second) { - return true; - } - } catch(...) {} - } - - return false; + return zimArchive->hasFulltextIndex(); } /* Search titles by prefix */