X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c2629bc08d081262a7fd1cbd9d52acb5f44bd8ec..64185ff94c6087eb7046f509f748e7b4e270ae65:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index f142731d..1297b363 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -785,7 +785,7 @@ class Geocode // require a normalized exact match of the term // if we have the normalizer version of the query // available - if ($aSearch['sClass'] === '' + if ($aSearch['sOperator'] === '' && ($sNormQuery === null || !($aSearchTerm['word'] && strpos($sNormQuery, $aSearchTerm['word']) === false))) { $aSearch['sClass'] = $aSearchTerm['class']; $aSearch['sType'] = $aSearchTerm['type'];