[core] nits

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-08-21 13:56:48 +00:00
committed by Konstantin Pastbin
parent 3f7815017e
commit 3c34765595
5 changed files with 19 additions and 11 deletions

View File

@@ -3,7 +3,7 @@
#include "search/ranking_utils.hpp"
#include "search/token_range.hpp"
#include <map>
#include <unordered_map>
#include <sstream>
namespace search
@@ -15,7 +15,7 @@ namespace
// All synonyms should be lowercase.
/// @todo These should check the map language and use only the corresponding translation.
map<string, vector<string>> const kSynonyms = {
unordered_map<string, vector<string>> const kSynonyms = {
/// @todo Should process synonyms with errors like "blvrd" -> "blvd".
/// @see HouseOnStreetSynonymsWithMisprints test.
{"1", {"pierwszy", "pierwsza", "un", "una", "pierwsze", "primo"}},