Ejemplo n.º 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.
  * @param SearchSettings $settings The settings to control product search and indexing behavior.
  * @return MozuClient
  */
 public static function updateSettingsClient($settings, $responseFields = null)
 {
     $url = SearchUrl::updateSettingsUrl($responseFields);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url)->withBody($settings);
     return $mozuClient;
 }
Ejemplo n.º 2
0
 /**
  * admin-search Delete DeleteSearchTuningRule description DOCUMENT_HERE 
  *
  * @param string $searchTuningRuleCode 
  */
 public static function deleteSearchTuningRuleClient($searchTuningRuleCode)
 {
     $url = SearchUrl::deleteSearchTuningRuleUrl($searchTuningRuleCode);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url);
     return $mozuClient;
 }