Пример #1
0
 /**
  * Adds or Updates (Upsert) the Search Settings for a specific site
  *
  * @param string $responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
  * @return Promise - use $promise->then(sucessfn, errorfn). successFn is passed Mozu\Api\MozuResult. errorFn is passed Mozu\Api\ApiException
  */
 public function updateSettingsAsync($settings, $responseFields = null)
 {
     $mozuClient = SearchClient::updateSettingsClient($settings, $responseFields);
     $mozuClient = $mozuClient->withContext($this->apiContext);
     return $mozuClient->executeAsync();
 }
Пример #2
0
 /**
  * admin-search Delete DeleteSearchTuningRule description DOCUMENT_HERE 
  *
  * @param string $searchTuningRuleCode 
  * @return Promise - use $promise->then(sucessfn, errorfn). successFn is passed Mozu\Api\MozuResult. errorFn is passed Mozu\Api\ApiException
  */
 public function deleteSearchTuningRuleAsync($searchTuningRuleCode)
 {
     $mozuClient = SearchClient::deleteSearchTuningRuleClient($searchTuningRuleCode);
     $mozuClient = $mozuClient->withContext($this->apiContext);
     return $mozuClient->executeAsync();
 }