]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/TokenWord.php
introduce a separate token type for partials
[nominatim.git] / lib-php / TokenWord.php
index fc28535d4582e459f5d88c72b8977efaf1930fa9..6de584229b47f2e0b2af2cf0cceb96924c8be483 100644 (file)
@@ -9,17 +9,14 @@ class Word
 {
     /// Database word id, if applicable.
     public $iId;
-    /// If true, the word may represent only part of a place name.
-    public $bPartial;
     /// Number of appearances in the database.
     public $iSearchNameCount;
     /// Number of terms in the word.
     public $iTermCount;
 
-    public function __construct($iId, $bPartial, $iSearchNameCount, $iTermCount)
+    public function __construct($iId, $iSearchNameCount, $iTermCount)
     {
         $this->iId = $iId;
-        $this->bPartial = $bPartial;
         $this->iSearchNameCount = $iSearchNameCount;
         $this->iTermCount = $iTermCount;
     }
@@ -30,8 +27,8 @@ class Word
                 'ID' => $this->iId,
                 'Type' => 'word',
                 'Info' => array(
-                           'partial' => $this->bPartial,
-                           'count' => $this->iSearchNameCount
+                           'count' => $this->iSearchNameCount,
+                           'terms' => $this->iTermCount
                           )
                );
     }