X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/1220ff5da6276ae73ab1bc63a16459b3b30da0ff..32f6ddf6dbd6972610e244d6a603aa16f62321ac:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index aef2d384..a7558bea 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'];