]> git.openstreetmap.org Git - nominatim.git/commitdiff
do not classify housenumbers as rare
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 8 Dec 2020 16:25:15 +0000 (17:25 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 8 Dec 2020 16:25:15 +0000 (17:25 +0100)
House numbers are highly redundant, so don't even attempt to
do it as a rare name search. Greatly improves speed of such
queries.

lib/SearchDescription.php

index 63241003097d235a16b296f4dfd9d8a514e3a83b..15c6bf2302d3304fa2480bc9ebda8d9b5755e767 100644 (file)
@@ -257,6 +257,7 @@ class SearchDescription
                     $oSearch = clone $this;
                     $oSearch->iSearchRank++;
                     $oSearch->aAddress = $this->aName;
+                    $oSearch->bRareName = false;
                     $oSearch->aName = array($oSearchTerm->iId => $oSearchTerm->iId);
                     $aNewSearches[] = $oSearch;
                 }