Skip to content

Commit 1661428

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 9eceb6e commit 1661428

File tree

1 file changed

+2
-2
lines changed
  • client/src/commonMain/kotlin/com/algolia/client/model/search

1 file changed

+2
-2
lines changed

client/src/commonMain/kotlin/com/algolia/client/model/search/Consequence.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import kotlinx.serialization.json.*
99
*
1010
* @param params
1111
* @param promote Records you want to pin to a specific position in the search results. You can promote up to 300 records, either individually, or as groups of up to 100 records each.
12-
* @param filterPromotes Whether promoted records must match an active filter for the consequence to be applied. This ensures that user actions (filtering the search) are given a higher precendence. For example, if you promote a record with the `color: red` attribute, and the user filters the search for `color: blue`, the \"red\" record won't be shown.
12+
* @param filterPromotes Determines whether promoted records must also match active filters for the consequence to apply. This ensures user-applied filters take priority and irrelevant matches aren't shown. For example, if you promote a record with `color: red` but the user filters for `color: blue`, the \"red\" record won't be shown. > In the Algolia dashboard, when you use the **Pin an item** consequence, `filterPromotes` appears as the checkbox: **Pinned 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).
1313
* @param hide Records you want to hide from the search results.
1414
* @param userData A JSON object with custom data that will be appended to the `userData` array in the response. This object isn't interpreted by the API and is limited to 1&nbsp;kB of minified JSON.
1515
*/
@@ -21,7 +21,7 @@ public data class Consequence(
2121
/** Records you want to pin to a specific position in the search results. You can promote up to 300 records, either individually, or as groups of up to 100 records each. */
2222
@SerialName(value = "promote") val promote: List<Promote>? = null,
2323

24-
/** Whether promoted records must match an active filter for the consequence to be applied. This ensures that user actions (filtering the search) are given a higher precendence. For example, if you promote a record with the `color: red` attribute, and the user filters the search for `color: blue`, the \"red\" record won't be shown. */
24+
/** Determines whether promoted records must also match active filters for the consequence to apply. This ensures user-applied filters take priority and irrelevant matches aren't shown. For example, if you promote a record with `color: red` but the user filters for `color: blue`, the \"red\" record won't be shown. > In the Algolia dashboard, when you use the **Pin an item** consequence, `filterPromotes` appears as the checkbox: **Pinned 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). */
2525
@SerialName(value = "filterPromotes") val filterPromotes: Boolean? = null,
2626

2727
/** Records you want to hide from the search results. */

0 commit comments

Comments
 (0)