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: Sources/Search/Models/SearchConsequence.swift
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,11 @@ public struct SearchConsequence: Codable, JSONEncodable {
13
13
/// Records you want to pin to a specific position in the search results. You can promote up to 300 records, either
14
14
/// individually, or as groups of up to 100 records each.
15
15
publicvarpromote:[SearchPromote]?
16
-
/// Whether promoted records must match an active filter for the consequence to be applied. This ensures that user
17
-
/// actions (filtering the search) are given a higher precendence. For example, if you promote a record with the
18
-
/// `color: red` attribute, and the user filters the search for `color: blue`, the \"red\" record won't be shown.
16
+
/// Determines whether promoted records must also match active filters for the consequence to apply. This ensures
17
+
/// user-applied filters take priority and irrelevant matches aren't shown. For example, if you promote a record
18
+
/// with `color: red` but the user filters for `color: blue`, the \"red\" record won't be shown. > In the Algolia
19
+
/// dashboard, when you use the **Pin an item** consequence, `filterPromotes` appears as the checkbox: **Pinned
20
+
/// items must match active filters to be displayed.** For examples, see [Promote results with rules](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/promote-hits/#promote-results-matching-active-filters).
19
21
publicvarfilterPromotes:Bool?
20
22
/// Records you want to hide from the search results.
0 commit comments