X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e171f90d81cb1a21eb6cda537a68b338052f2bce..aaabb46f20bd6189caebf02c1f1a925cbd08a263:/lib/SearchContext.php 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.