From: Sarah Hoffmann Date: Tue, 6 Oct 2020 08:32:55 +0000 (+0200) Subject: experimental: disable early break from search loop X-Git-Tag: deploy~208 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/d365338c4f94ef0d005d6c096a9754a5259e1e0b experimental: disable early break from search loop Go through all available search variants instead of breaking out early. Due to the larger database there are a lot of good interpretations (in particular partial searches) ranked lower. --- diff --git a/lib/Geocode.php b/lib/Geocode.php index 7ab53d97..af3262f9 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -770,7 +770,7 @@ class Geocode } } - if ($iQueryLoop > 20) break; + //if ($iQueryLoop > 20) break; } if (!empty($aResults)) { @@ -842,8 +842,8 @@ class Geocode } if (!empty($aResults)) break; - if ($iGroupLoop > 4) break; - if ($iQueryLoop > 30) break; + //if ($iGroupLoop > 4) break; + //if ($iQueryLoop > 30) break; } } else { // Just interpret as a reverse geocode