Multiple query rules with the same condition

Hi, I have an environment where various triggers/processes on the back end are automatically generating query rules. I have noticed that in some instances, multiple query rules are being generated with the same condition (e.g. “Query contains ‘webcasts’”) but different consequences, and in these instances only 1 query rule is being applied when that condition is met. Is there any way to have it trigger both/all rules that apply? Combining them manually through the dashboard is not an option since those changes could be overwritten by the automated processes. Thanks!

1 Like

The logic applied in case of conflicting rules is described here:
https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/in-depth/rule-matching-algorithm/#conflicting-rules

tl;dr: you can’t have two rules matching the same word.

To handle this, your backend should, if a rule for this word already exists, augment the previous rule with a new consequence instead of creating a new one.