X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/dba5b2f86e3b91eade86a851932004a56b34134e..91395fb9ab8e5ce969c9cd894454948423b9c0fe:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index b6458725..a3066b7c 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1160,6 +1160,7 @@ class Geocode && $aWordFrequencyScores[$aSearch['aName'][reset($aSearch['aName'])]] < CONST_Search_NameOnlySearchFrequencyThreshold ) { //$aTerms[] = "array_cat(nameaddress_vector,ARRAY[]::integer[]) @> ARRAY[".join(array_merge($aSearch['aAddress'], $aSearch['aAddressNonSearch']), ",")."]"; + $aTerms[] = "array_cat(nameaddress_vector,ARRAY[]::integer[]) @> ARRAY[".join($aSearch['aAddress'],",")."]"; } else { $aTerms[] = "nameaddress_vector @> ARRAY[".join($aSearch['aAddress'], ",")."]"; /*if (sizeof($aSearch['aAddressNonSearch'])) { @@ -1467,7 +1468,7 @@ class Geocode } } else { // Just interpret as a reverse geocode - $oReverse = new Nominatim\ReverseGeocode($this->oDB); + $oReverse = new ReverseGeocode($this->oDB); $oReverse->setZoom(18); $aLookup = $oReverse->lookup(