From: Sarah Hoffmann Date: Fri, 5 Nov 2021 21:18:37 +0000 (+0100) Subject: fix combination of NeedsAddress flag X-Git-Tag: v4.0.1~6^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/e2d2571ad03030382e8bec1f6af153074a4feb27 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. --- diff --git a/lib-php/SearchDescription.php b/lib-php/SearchDescription.php index fcb87d43..e13a0e9d 100644 --- a/lib-php/SearchDescription.php +++ b/lib-php/SearchDescription.php @@ -257,7 +257,7 @@ class SearchDescription if (empty($this->aName)) { $this->bNameNeedsAddress = $bNeedsAddress; } else { - $this->bNameNeedsAddress |= $bNeedsAddress; + $this->bNameNeedsAddress &= $bNeedsAddress; } if ($bSearchable) { $this->aName[$iId] = $iId;