]> git.openstreetmap.org Git - nominatim.git/commitdiff
Fix partial word computation
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 13 Aug 2018 19:22:45 +0000 (21:22 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 13 Aug 2018 19:22:45 +0000 (21:22 +0200)
Partial word tokens have a space at the beginning of the
token not the word.

lib/TokenList.php

index 67d94edd7ded9efa1c598b67d3d90eadc3972aba..a5b3c2d28710214ec21b7b0a2c2b0c248ca84746 100644 (file)
@@ -138,7 +138,7 @@ class TokenList
             } else {
                 $oToken = new Token\Word(
                     $iId,
-                    $aWord['word'][0] != ' ',
+                    $aWord['word_token'][0] != ' ',
                     (int) $aWord['count']
                 );
             }