]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/TokenPartial.php
add address counts to tokens
[nominatim.git] / lib-php / TokenPartial.php
index 131bb2a3b48a52484df6817e1e39deeb8d3db90b..3dc6f308a9e3c1f41e4e236163ccfc448973da48 100644 (file)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * SPDX-License-Identifier: GPL-2.0-only
+ *
+ * This file is part of Nominatim. (https://nominatim.org)
+ *
+ * Copyright (C) 2022 by the Nominatim developer community.
+ * For a full list of authors see the git log.
+ */
 
 namespace Nominatim\Token;
 
@@ -90,6 +98,7 @@ class Partial
             $oNewSearch->addPartialNameToken(
                 $this->iId,
                 $this->iSearchNameCount < CONST_Max_Word_Frequency,
+                $this->iSearchNameCount > CONST_Search_NameOnlySearchFrequencyThreshold,
                 $oPosition->getPhrase()
             );