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
summary: Create or update a batch of Recommend Rules
10
+
description: |
11
+
Create or update a batch of Recommend Rules
12
+
13
+
Each Recommend Rule is created or updated, depending on whether a Recommend Rule with the same `objectID` already exists.
14
+
You may also specify `true` for `clearExistingRules`, in which case the batch will atomically replace all the existing Recommend Rules.
15
+
16
+
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:
17
+
- Conditions `pattern` and `anchoring` are unavailable.
18
+
- Condition `filters` triggers if the source item matches the specified filters.
19
+
- Condition `filters` accepts numeric filters.
20
+
- Consequence `params` only covers filtering parameters.
21
+
- Consequence `automaticFacetFilters` doesn't require a facet value placeholder (it tries to match the data source item's attributes instead).
0 commit comments