MCPcopy Create free account
hub / github.com/comaps/comaps / SuggestStrings

Method SuggestStrings

libs/search/ranker.cpp:793–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793void 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
805void Ranker::UpdateResults(bool lastUpdate)
806{

Callers 1

SearchMethod · 0.80

Calls 2

DropLastTokenFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected