You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Api/RecommendClient.php
+54Lines changed: 54 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,60 @@ public function setClientApiKey($apiKey)
109
109
$this->config->setClientApiKey($apiKey);
110
110
}
111
111
112
+
/**
113
+
* Create or update a batch of Recommend Rules Each Recommend Rule is created or updated, depending on whether a Recommend Rule with the same `objectID` already exists. You may also specify `true` for `clearExistingRules`, in which case the batch will atomically replace all the existing Recommend Rules. Recommend Rules are similar to Search Rules, except that the conditions and consequences apply to a [source item](/doc/guides/algolia-recommend/overview/#recommend-models) instead of a query. The main differences are the following: - Conditions `pattern` and `anchoring` are unavailable. - Condition `filters` triggers if the source item matches the specified filters. - Condition `filters` accepts numeric filters. - Consequence `params` only covers filtering parameters. - Consequence `automaticFacetFilters` doesn't require a facet value placeholder (it tries to match the data source item's attributes instead).
114
+
*
115
+
* Required API Key ACLs:
116
+
* - editSettings
117
+
*
118
+
* @param string $indexName Name of the index on which to perform the operation. (required)
0 commit comments