From d365338c4f94ef0d005d6c096a9754a5259e1e0b Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 6 Oct 2020 10:32:55 +0200 Subject: [PATCH] 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. --- lib/Geocode.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5