]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/TokenWord.php
ignore words without id for status
[nominatim.git] / lib-php / TokenWord.php
index c9a439155b1ca33b72ba9c556ad6773cca238faf..59456e35aaef3d309b8d2da23aca21df2d546b9f 100644 (file)
@@ -70,13 +70,12 @@ class Word
             }
         } elseif (!$oSearch->hasName(true)) {
             $oNewSearch = $oSearch->clone(1);
-            $oNewSearch->addNameToken($this->iId);
-            if (CONST_Search_NameOnlySearchFrequencyThreshold
+            $oNewSearch->addNameToken(
+                $this->iId,
+                CONST_Search_NameOnlySearchFrequencyThreshold
                 && $this->iSearchNameCount
                           < CONST_Search_NameOnlySearchFrequencyThreshold
-            ) {
-                $oNewSearch->markRareName();
-            }
+            );
 
             return array($oNewSearch);
         }