X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/027d9e938c525d259f0fde728e991649b71ceac5..36447c488a78017dc533f7ed42bc8cf20c72556d:/lib/SearchContext.php?ds=inline 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.