From af09e39d09dd9d7bce06b9c31c4f08d4d7b15074 Mon Sep 17 00:00:00 2001 From: Viktor Govako Date: Wed, 3 Aug 2022 13:23:53 +0300 Subject: [PATCH] [search] Removed common street synonyms like parkway, path, line, walk, trail ... Signed-off-by: Viktor Govako --- indexer/search_string_utils.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/indexer/search_string_utils.cpp b/indexer/search_string_utils.cpp index 1bdc1fb027..6d7a4e04a6 100644 --- a/indexer/search_string_utils.cpp +++ b/indexer/search_string_utils.cpp @@ -334,7 +334,10 @@ private: /// Should reconsider candidates fetching and sorting logic from scratch to make correct processing. // Canada - "allee", "alley", "autoroute", "aut", "bypass", "byway", /*"carrefour", "carref",*/ "chemin", "cercle", "circle", "côte", "crossing", "cross", "expressway", "freeway", "fwy", "line", "link", "loop", "parkway", "pky", "pkwy", "path", "pathway", "ptway", "route", "rue", "rte", "trail", "walk", + "allee", "alley", "autoroute", "aut", "bypass", "byway", /*"carrefour", "carref",*/ "côte", "expressway", "freeway", "fwy", "pky", "pkwy", + /// @todo Do not use next _common search_ (e.g. 'park' is a prefix of 'parkway') tokens as generic street synonyms. + /// Should reconsider streets matching logic to get this synonyms back. + //"line", "link", "loop", "parkway", "path", "pathway", "route", "trail", "walk", // Catalan language (Barcelona, Valencia, ...) "avinguda", "carrer", /*"rambla", "ronda",*/ "passeig", "passatge", "travessera", @@ -346,7 +349,7 @@ private: "ulice", "ul", "náměstí", "nám", "nábřeží", "nábr", // Danish - Dansk - "plads", + "plads", "alle", "gade", // Dutch - Nederlands "laan", "ln.", "straat", "steenweg", "stwg", "st",