]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge pull request #2728 from lonvia/allow-more-partials
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 27 May 2022 16:09:11 +0000 (18:09 +0200)
committerGitHub <noreply@github.com>
Fri, 27 May 2022 16:09:11 +0000 (18:09 +0200)
Allow search for partials consisting of 3 or more words

lib-php/SearchDescription.php

index 65df58ef0850b120bbc4e5a1b7b8af19dfd9ef34..3f3beab1964dd2e2578c117bac663ce9baa5535c 100644 (file)
@@ -264,6 +264,8 @@ class SearchDescription
     {
         if (empty($this->aName)) {
             $this->bNameNeedsAddress = $bNeedsAddress;
+        } elseif ($bSearchable && count($this->aName) >= 2) {
+            $this->bNameNeedsAddress = false;
         } else {
             $this->bNameNeedsAddress &= $bNeedsAddress;
         }