mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-26 06:22:13 +03:00
fix result splitting for last search group
When we are in the final iteration of the search groups, it is not possible to further delay the results. Unconditionally use the results with the best rank instead.
This commit is contained in:
parent
182f5f5d7b
commit
f498e40208
@ -779,7 +779,8 @@ class Geocode
|
||||
$aSplitResults = Result::splitResults($aResults);
|
||||
Debug::printVar('Split results', $aSplitResults);
|
||||
if ($iGroupLoop <= 4
|
||||
&& reset($aSplitResults['head'])->iResultRank > 0) {
|
||||
&& reset($aSplitResults['head'])->iResultRank > 0
|
||||
&& $iGroupedRank !== array_key_last($aGroupedSearches)) {
|
||||
// Haven't found an exact match for the query yet.
|
||||
// Therefore add result from the next group level.
|
||||
$aNextResults = $aSplitResults['head'];
|
||||
|
Loading…
Reference in New Issue
Block a user