diff --git a/search/ranking_utils.cpp b/search/ranking_utils.cpp index 31da4e0b5f..203406319e 100644 --- a/search/ranking_utils.cpp +++ b/search/ranking_utils.cpp @@ -112,7 +112,7 @@ bool IsStopWord(UniString const & s) // Don't want to put _full_ stopwords list, not to break current ranking. // Only 2-letters and the most common. char const * arr[] = { - "a", "s", // English + "a", "s", "the", // English "am", "im", "an", // German "d", "de", "di", "da", "la", "le", // French, Spanish, Italian "и", "я" // Cyrillic diff --git a/search/search_quality/search_quality_tests/real_mwm_tests.cpp b/search/search_quality/search_quality_tests/real_mwm_tests.cpp index 8e8b3df0a2..c5a565c893 100644 --- a/search/search_quality/search_quality_tests/real_mwm_tests.cpp +++ b/search/search_quality/search_quality_tests/real_mwm_tests.cpp @@ -586,4 +586,21 @@ UNIT_CLASS_TEST(MwmTestsFixture, Milan_Streets) TEST_LESS(SortedByDistance(range, center), 20000.0, ()); } +// https://github.com/organicmaps/organicmaps/issues/5150 +UNIT_CLASS_TEST(MwmTestsFixture, London_RedLion) +{ + // Milan + ms::LatLon const center(51.49263, -0.12877); + SetViewportAndLoadMaps(center); + + auto request = MakeRequest("Red Lion", "en"); + auto const & results = request->Results(); + + TEST_GREATER(results.size(), kPopularPoiResultsCount, ()); + + // Top first results "The Red Lion" in 5 km. + Range const range(results); + TEST_LESS(SortedByDistance(range, center), 5000.0, ()); +} + } // namespace real_mwm_tests