diff --git a/ftshelpers.cc b/ftshelpers.cc index 2d410f52..25b18973 100644 --- a/ftshelpers.cc +++ b/ftshelpers.cc @@ -283,7 +283,7 @@ void FTSResultsRequest::checkArticles( QVector< uint32_t > const & offsets, if( matchWordNom > 0 ) { unmatchWordNom += 1; - if( distanceBetweenWords > 0 && unmatchWordNom > distanceBetweenWords ) + if( distanceBetweenWords >= 0 && unmatchWordNom > distanceBetweenWords ) { matchWordNom = 0; unmatchWordNom = 0; diff --git a/fulltextsearch.cc b/fulltextsearch.cc index 4a61db36..1522b0d7 100644 --- a/fulltextsearch.cc +++ b/fulltextsearch.cc @@ -15,8 +15,8 @@ namespace FTS enum { - MinDistanceBetweenWords = 1, - MaxDistanceBetweenWords = 10, + MinDistanceBetweenWords = 0, + MaxDistanceBetweenWords = 15, MinArticlesPerDictionary = 1, MaxArticlesPerDictionary = 10000 };