Skip to content

Commit 915ddd3

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 f2d229e commit 915ddd3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

algoliasearch/src/main/java/com/algolia/model/search/Consequence.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,13 @@ public Consequence setFilterPromotes(Boolean filterPromotes) {
6969
}
7070

7171
/**
72-
* Whether promoted records must match an active filter for the consequence to be applied. This
73-
* ensures that user actions (filtering the search) are given a higher precendence. For example,
74-
* if you promote a record with the `color: red` attribute, and the user filters the search for
75-
* `color: blue`, the \"red\" record won't be shown.
72+
* Determines whether promoted records must also match active filters for the consequence to
73+
* apply. This ensures user-applied filters take priority and irrelevant matches aren't shown. For
74+
* example, if you promote a record with `color: red` but the user filters for `color: blue`, the
75+
* \"red\" record won't be shown. > In the Algolia dashboard, when you use the **Pin an item**
76+
* consequence, `filterPromotes` appears as the checkbox: **Pinned items must match active filters
77+
* to be displayed.** For examples, see [Promote results with
78+
* rules](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/promote-hits/#promote-results-matching-active-filters).
7679
*/
7780
@javax.annotation.Nullable
7881
public Boolean getFilterPromotes() {

0 commit comments

Comments
 (0)