X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/027d9e938c525d259f0fde728e991649b71ceac5..ff5a2372001b024e2e11d6d4db8d69809b1e5d29:/lib/SearchContext.php?ds=sidebyside diff --git a/lib/SearchContext.php b/lib/SearchContext.php index 3d399bdc..8316a012 100644 --- a/lib/SearchContext.php +++ b/lib/SearchContext.php @@ -2,7 +2,7 @@ namespace Nominatim; -require_once(CONST_BasePath.'/lib/lib.php'); +require_once(CONST_LibDir.'/lib.php'); /** @@ -32,7 +32,18 @@ class SearchContext public $sqlCountryList = ''; /// List of place IDs to exclude (as SQL). private $sqlExcludeList = ''; + /// Subset of word ids of full words in the query. + private $aFullNameWords = array(); + public function setFullNameWords($aWordList) + { + $this->aFullNameWords = $aWordList; + } + + public function getFullNameTerms() + { + return $this->aFullNameWords; + } /** * Check if a reference point is defined.