mirror of https://github.com/kiwix/libkiwix.git
Explicitly set ctpp2 iIMaxSteps to extends search beyond 68 results.
Ctpp2 templates have a limit step number. If the template to render is too big, the rendering fails, throwing an exception. From our tests, it seems that, with the template we have, the default step limit allow us to render 68 results only. By doubling the limit, we can render up to 144 results.
This commit is contained in:
parent
f0bcb1960b
commit
382655d83c
|
@ -298,7 +298,12 @@ int _Result::get_readerIndex()
|
|||
|
||||
string Searcher::getHtml()
|
||||
{
|
||||
SimpleVM oSimpleVM;
|
||||
SimpleVM oSimpleVM(
|
||||
1024, //iIMaxFunctions (default value)
|
||||
4096, //iIMaxArgStackSize (default value)
|
||||
4096, //iIMaxCodeStackSize (default value)
|
||||
10240 * 2 //iIMaxSteps (default*2)
|
||||
);
|
||||
|
||||
// Fill data
|
||||
CDT oData;
|
||||
|
|
Loading…
Reference in New Issue