X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/bc8b2d4ae0dbaef64448ddcb530de9626da9d82d..6070c3d1d58fb8737b387e8a3ef1f17fb1eb5d54:/lib-php/TokenWord.php diff --git a/lib-php/TokenWord.php b/lib-php/TokenWord.php index fc28535d..6de58422 100644 --- a/lib-php/TokenWord.php +++ b/lib-php/TokenWord.php @@ -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 ) ); }