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:
Matthieu Gautier 2017-11-06 12:10:48 +01:00
parent f0bcb1960b
commit 382655d83c
1 changed files with 6 additions and 1 deletions

View File

@ -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;