Skip to content

Commit ae9e1cc

Browse files
Merge branch 'main' into fix/filterPromotes (generated)
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
1 parent 4f8c7fd commit ae9e1cc

File tree

14 files changed

+55
-33
lines changed

14 files changed

+55
-33
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Search/Consequence.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public Consequence() { }
3535
public List<Promote> Promote { get; set; }
3636

3737
/// <summary>
38-
/// 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.
38+
/// 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).
3939
/// </summary>
40-
/// <value>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. </value>
40+
/// <value>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). </value>
4141
[JsonPropertyName("filterPromotes")]
4242
public bool? FilterPromotes { get; set; }
4343

clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class Consequence {
2828
@JsonKey(name: r'promote')
2929
final Iterable<dynamic>? promote;
3030

31-
/// 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.
31+
/// 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).
3232
@JsonKey(name: r'filterPromotes')
3333
final bool? filterPromotes;
3434

clients/algoliasearch-client-go/algolia/search/model_consequence.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-java/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() {

clients/algoliasearch-client-javascript/packages/client-search/model/consequence.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type Consequence = {
1616
promote?: Array<Promote> | undefined;
1717

1818
/**
19-
* 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.
19+
* 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).
2020
*/
2121
filterPromotes?: boolean | undefined;
2222

clients/algoliasearch-client-kotlin/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. */

clients/algoliasearch-client-php/lib/Model/Search/Consequence.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function getFilterPromotes()
246246
/**
247247
* Sets filterPromotes.
248248
*
249-
* @param null|bool $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.
249+
* @param null|bool $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).
250250
*
251251
* @return self
252252
*/

clients/algoliasearch-client-python/algoliasearch/search/models/consequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Consequence(BaseModel):
4444
promote: Optional[List[Promote]] = None
4545
""" 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. """
4646
filter_promotes: Optional[bool] = None
47-
""" 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. """
47+
""" 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). """
4848
hide: Optional[List[ConsequenceHide]] = None
4949
""" Records you want to hide from the search results. """
5050
user_data: Optional[object] = None

clients/algoliasearch-client-ruby/lib/algolia/models/search/consequence.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Consequence
1414
# 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.
1515
attr_accessor :promote
1616

17-
# 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.
17+
# 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).
1818
attr_accessor :filter_promotes
1919

2020
# Records you want to hide from the search results.

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/search/Consequence.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ package algoliasearch.search
4040
* Records you want to pin to a specific position in the search results. You can promote up to 300 records, either
4141
* individually, or as groups of up to 100 records each.
4242
* @param filterPromotes
43-
* Whether promoted records must match an active filter for the consequence to be applied. This ensures that user
44-
* actions (filtering the search) are given a higher precendence. For example, if you promote a record with the
45-
* `color: red` attribute, and the user filters the search for `color: blue`, the \"red\" record won't be shown.
43+
* Determines whether promoted records must also match active filters for the consequence to apply. This ensures
44+
* user-applied filters take priority and irrelevant matches aren't shown. For example, if you promote a record with
45+
* `color: red` but the user filters for `color: blue`, the \"red\" record won't be shown. > In the Algolia
46+
* dashboard, when you use the **Pin an item** consequence, `filterPromotes` appears as the checkbox: **Pinned items
47+
* must match active filters to be displayed.** For examples, see [Promote results with
48+
* rules](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/promote-hits/#promote-results-matching-active-filters).
4649
* @param hide
4750
* Records you want to hide from the search results.
4851
* @param userData

0 commit comments

Comments
 (0)