Skip to content

Commit 9fa60bb

Browse files
algolia-botgazconroyGary Conroyshortcuts
committed
fix(specs): Cross-reference filerPromotes to relevant guide (generated)
algolia/api-clients-automation#5279 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: gazconroy <[email protected]> Co-authored-by: Gary Conroy <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent ba5f576 commit 9fa60bb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Sources/Search/Models/SearchConsequence.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ public struct SearchConsequence: Codable, JSONEncodable {
1313
/// Records you want to pin to a specific position in the search results. You can promote up to 300 records, either
1414
/// individually, or as groups of up to 100 records each.
1515
public var promote: [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).
1921
public var filterPromotes: Bool?
2022
/// Records you want to hide from the search results.
2123
public var hide: [SearchConsequenceHide]?

0 commit comments

Comments
 (0)