mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-25 18:48:15 +00:00
@@ -593,7 +593,11 @@ class SearchDescription
|
|||||||
$aTerms = array();
|
$aTerms = array();
|
||||||
$aOrder = array();
|
$aOrder = array();
|
||||||
|
|
||||||
if ($this->sHouseNumber && !empty($this->aAddress)) {
|
// Sort by existence of the requested house number but only if not
|
||||||
|
// too many results are expected for the street, i.e. if the result
|
||||||
|
// will be narrowed down by an address. Remeber that with ordering
|
||||||
|
// every single result has to be checked.
|
||||||
|
if ($this->sHouseNumber && (!empty($this->aAddress) || $this->sPostcode)) {
|
||||||
$sHouseNumberRegex = '\\\\m'.$this->sHouseNumber.'\\\\M';
|
$sHouseNumberRegex = '\\\\m'.$this->sHouseNumber.'\\\\M';
|
||||||
$aOrder[] = ' (';
|
$aOrder[] = ' (';
|
||||||
$aOrder[0] .= 'EXISTS(';
|
$aOrder[0] .= 'EXISTS(';
|
||||||
|
|||||||
Reference in New Issue
Block a user