X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/788ba6d985a47ac9429ca1af68485668313e73a5..a888f6ff93a7ba81245888ed03f5bf8470788e33:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index b07d1ade..69b6f41c 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -934,6 +934,8 @@ class Geocode } else { $aResult['foundorder'] += 0.01; } + // - rank + $aResult['foundorder'] -= 0.00001 * (30 - $aResult['rank_search']); // Adjust importance for the number of exact string matches in the result $iCountWords = 0;