]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/TokenList.php
move checkModilePresence to class, delete own debug echo
[nominatim.git] / lib / TokenList.php
index a91c735ed6a2e97beb33677b5680074c08b2cdae..a5b3c2d28710214ec21b7b0a2c2b0c248ca84746 100644 (file)
@@ -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']
                 );
             }