From 657fc0522571edc654886915918ab847715a23ba Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 3 Oct 2016 15:39:00 +0200 Subject: [PATCH] Fix url of the fulltext index. The fulltext index in the zim is at the url /Z/fulltextIndex/xapian. We do not need to specifie the Z in the url as this is automatically add with the namespace. --- src/common/kiwix/xapianSearcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/kiwix/xapianSearcher.cpp b/src/common/kiwix/xapianSearcher.cpp index 923bc19d6..6d895aa6d 100644 --- a/src/common/kiwix/xapianSearcher.cpp +++ b/src/common/kiwix/xapianSearcher.cpp @@ -39,7 +39,7 @@ namespace kiwix { try { zim::File zimFile = zim::File(directoryPath); - zim::Article xapianArticle = zimFile.getArticle('Z', "/Z/fulltextIndex/xapian"); + zim::Article xapianArticle = zimFile.getArticle('Z', "/fulltextIndex/xapian"); if ( ! xapianArticle.good()) throw NoXapianIndexInZim(); zim::offset_type dbOffset = xapianArticle.getOffset();