| 206 | } |
| 207 | |
| 208 | void Processor::SetInputLocale(string const & locale) |
| 209 | { |
| 210 | if (locale.empty()) |
| 211 | return; |
| 212 | |
| 213 | localisation::LanguageIndex const languageIndex = localisation::ConvertLanguageCodeToLanguageIndex(locale); |
| 214 | LOG(LDEBUG, ("New input locale:", locale, "; locale code:", int(languageIndex))); |
| 215 | m_keywordsScorer.SetLanguages(LanguageTier::LANGUAGE_TIER_CURRENT, localisation::SimilarLanguageIndexes(languageIndex)); |
| 216 | m_inputLanguageIndex = CategoriesHolder::MapLocaleToInteger(locale); |
| 217 | } |
| 218 | |
| 219 | void Processor::SetQuery(string const & query, bool categorialRequest /* = false */) |
| 220 | { |
nothing calls this directly
no test coverage detected