X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0892eab1d36b14fea8de73590c477612b5165ce6..6e3670bce58ccb1d9357e9bc558d10db3f27931b:/lib/TokenList.php?ds=inline diff --git a/lib/TokenList.php b/lib/TokenList.php index a91c735e..a5b3c2d2 100644 --- a/lib/TokenList.php +++ b/lib/TokenList.php @@ -125,7 +125,7 @@ class TokenList $iId, $aWord['class'], $aWord['type'], - $aWord['operator'] ? Operator::NONE : Operator::NEAR + $aWord['operator'] ? Operator::NEAR : Operator::NONE ); } } elseif ($aWord['country_code']) { @@ -138,7 +138,7 @@ class TokenList } else { $oToken = new Token\Word( $iId, - $aWord['word'][0] != ' ', + $aWord['word_token'][0] != ' ', (int) $aWord['count'] ); }