mirror of https://github.com/kiwix/libkiwix.git
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:
parent
e526026407
commit
657fc05225
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue