mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-07 10:34:08 +00:00
fix combination of NeedsAddress flag
When dealing with multiple partial terms, only keep the flag, when all partial terms are so frequent as to need an address. Fixes #2510.
This commit is contained in:
@@ -257,7 +257,7 @@ class SearchDescription
|
|||||||
if (empty($this->aName)) {
|
if (empty($this->aName)) {
|
||||||
$this->bNameNeedsAddress = $bNeedsAddress;
|
$this->bNameNeedsAddress = $bNeedsAddress;
|
||||||
} else {
|
} else {
|
||||||
$this->bNameNeedsAddress |= $bNeedsAddress;
|
$this->bNameNeedsAddress &= $bNeedsAddress;
|
||||||
}
|
}
|
||||||
if ($bSearchable) {
|
if ($bSearchable) {
|
||||||
$this->aName[$iId] = $iId;
|
$this->aName[$iId] = $iId;
|
||||||
|
|||||||
Reference in New Issue
Block a user