query language: the default slack for proximity field searches had become 0. Restore the old default of 10

This commit is contained in:
Jean-Francois Dockes 2012-03-06 14:16:16 +01:00
parent 9af9c6700b
commit 50a5e6ff6d

View File

@ -373,7 +373,10 @@ StringToWasaQuery::Internal::stringToQuery(const string& str, string& reason)
}
}
break;
case 'p': mods |= WasaQuery::WQM_PROX; break;
case 'p':
mods |= WasaQuery::WQM_PROX;
nclause->m_slack = 10;
break;
case 'r': mods |= WasaQuery::WQM_REGEX; break;
case 's': mods |= WasaQuery::WQM_SLOPPY; break;
case 'w': mods |= WasaQuery::WQM_WORDS; break;