Snippet generation: limit positions walk to max hit position. Return status code when truncated walk possibly generated incomplete snippets. Implement config variabl for max pos walk

This commit is contained in:
Jean-Francois Dockes 2012-10-08 14:30:14 +02:00
parent 46b7f87e51
commit 97bc58201b
5 changed files with 32 additions and 15 deletions

View file

@ -1618,7 +1618,7 @@ bool Db::termMatch(MatchType typ, const string &lang,
case 0: is = prefix; break;
default: is = prefix + droot.substr(0, es); break;
}
LOGDEB(("termMatch: initsec: [%s]\n", is.c_str()));
LOGDEB1(("termMatch: initsec: [%s]\n", is.c_str()));
for (int tries = 0; tries < 2; tries++) {
try {