mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
do not classify housenumbers as rare
House numbers are highly redundant, so don't even attempt to do it as a rare name search. Greatly improves speed of such queries.
This commit is contained in:
@@ -257,6 +257,7 @@ class SearchDescription
|
|||||||
$oSearch = clone $this;
|
$oSearch = clone $this;
|
||||||
$oSearch->iSearchRank++;
|
$oSearch->iSearchRank++;
|
||||||
$oSearch->aAddress = $this->aName;
|
$oSearch->aAddress = $this->aName;
|
||||||
|
$oSearch->bRareName = false;
|
||||||
$oSearch->aName = array($oSearchTerm->iId => $oSearchTerm->iId);
|
$oSearch->aName = array($oSearchTerm->iId => $oSearchTerm->iId);
|
||||||
$aNewSearches[] = $oSearch;
|
$aNewSearches[] = $oSearch;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user