[search] Do not match Wi-Fi with “wi” or “fi” token.

This commit is contained in:
vng 2014-09-04 17:43:18 +03:00 committed by Alex Zolotarev
parent 3170c937d9
commit ccf0797fb0

View file

@ -67,7 +67,7 @@ bool CategoriesHolder::ValidKeyToken(StringT const & s)
return true;
/// @todo We need to have global stop words array for the most used languages.
char const * arr[] = { "a", "z", "s", "d", "di", "de", "le" };
char const * arr[] = { "a", "z", "s", "d", "di", "de", "le", "wi", "fi" };
for (size_t i = 0; i < ARRAY_SIZE(arr); ++i)
if (s.IsEqualAscii(arr[i]))
return false;