| 791 | } |
| 792 | |
| 793 | void Ranker::SuggestStrings() |
| 794 | { |
| 795 | // Prefix is only empty when tokens exceeds the max allowed. No point in giving suggestions then. |
| 796 | if (m_params.m_query.m_prefix.empty() || !m_params.m_suggestsEnabled) |
| 797 | return; |
| 798 | |
| 799 | string const prologue = DropLastToken(m_params.m_query.m_query); |
| 800 | |
| 801 | for (auto const locale : m_params.m_categoryLocales) |
| 802 | MatchForSuggestions(m_params.m_query.m_prefix, locale, prologue); |
| 803 | } |
| 804 | |
| 805 | void Ranker::UpdateResults(bool lastUpdate) |
| 806 | { |
no test coverage detected