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.
This commit is contained in:
Matthieu Gautier 2016-10-03 15:39:00 +02:00
parent e526026407
commit 657fc05225
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ namespace kiwix {
try try
{ {
zim::File zimFile = zim::File(directoryPath); 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()) if ( ! xapianArticle.good())
throw NoXapianIndexInZim(); throw NoXapianIndexInZim();
zim::offset_type dbOffset = xapianArticle.getOffset(); zim::offset_type dbOffset = xapianArticle.getOffset();