Full-text search: Adjust limits for allowed distance between words

This commit is contained in:
Abs62 2014-04-18 19:53:21 +04:00
parent 362acce554
commit 75a459d40b
2 changed files with 3 additions and 3 deletions

View file

@ -283,7 +283,7 @@ void FTSResultsRequest::checkArticles( QVector< uint32_t > const & offsets,
if( matchWordNom > 0 ) if( matchWordNom > 0 )
{ {
unmatchWordNom += 1; unmatchWordNom += 1;
if( distanceBetweenWords > 0 && unmatchWordNom > distanceBetweenWords ) if( distanceBetweenWords >= 0 && unmatchWordNom > distanceBetweenWords )
{ {
matchWordNom = 0; matchWordNom = 0;
unmatchWordNom = 0; unmatchWordNom = 0;

View file

@ -15,8 +15,8 @@ namespace FTS
enum enum
{ {
MinDistanceBetweenWords = 1, MinDistanceBetweenWords = 0,
MaxDistanceBetweenWords = 10, MaxDistanceBetweenWords = 15,
MinArticlesPerDictionary = 1, MinArticlesPerDictionary = 1,
MaxArticlesPerDictionary = 10000 MaxArticlesPerDictionary = 10000
}; };