Skip to content

Commit f302a85

Browse files
algolia-botkai687millotp
committed
fix(specs): condition cant be numeric filter (#4726) (generated) [skip ci]
Co-authored-by: Kai Welke <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 369c142 commit f302a85

File tree

13 files changed

+29
-22
lines changed

13 files changed

+29
-22
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public Condition()
5151
public string Context { get; set; }
5252

5353
/// <summary>
54-
/// Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
54+
/// Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. You can't combine multiple filters with `OR` and you can't use numeric filters.
5555
/// </summary>
56-
/// <value>Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. </value>
56+
/// <value>Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. You can't combine multiple filters with `OR` and you can't use numeric filters. </value>
5757
[JsonPropertyName("filters")]
5858
public string Filters { get; set; }
5959

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class Condition {
3232
@JsonKey(name: r'context')
3333
final String? context;
3434

35-
/// Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
35+
/// Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. You can't combine multiple filters with `OR` and you can't use numeric filters.
3636
@JsonKey(name: r'filters')
3737
final String? filters;
3838

clients/algoliasearch-client-go/algolia/search/model_condition.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/Condition.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ public Condition setFilters(String filters) {
8585
}
8686

8787
/**
88-
* Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that
89-
* the rule is triggered, when the specific filter is selected. You can use `filters` on its own
90-
* or combine it with the `pattern` parameter.
88+
* Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the
89+
* rule is triggered, when the specific filter is selected. You can use `filters` on its own or
90+
* combine it with the `pattern` parameter. You can't combine multiple filters with `OR` and you
91+
* can't use numeric filters.
9192
*/
9293
@javax.annotation.Nullable
9394
public String getFilters() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type Condition = {
2121
context?: string;
2222

2323
/**
24-
* Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
24+
* Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. You can\'t combine multiple filters with `OR` and you can\'t use numeric filters.
2525
*/
2626
filters?: string;
2727
};

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/search/Condition.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import kotlinx.serialization.json.*
1111
* @param anchoring
1212
* @param alternatives Whether the pattern should match plurals, synonyms, and typos.
1313
* @param context An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
14-
* @param filters Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
14+
* @param filters Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. You can't combine multiple filters with `OR` and you can't use numeric filters.
1515
*/
1616
@Serializable
1717
public data class Condition(
@@ -27,6 +27,6 @@ public data class Condition(
2727
/** An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters. */
2828
@SerialName(value = "context") val context: String? = null,
2929

30-
/** Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. */
30+
/** Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. You can't combine multiple filters with `OR` and you can't use numeric filters. */
3131
@SerialName(value = "filters") val filters: String? = null,
3232
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function getFilters()
292292
/**
293293
* Sets filters.
294294
*
295-
* @param null|string $filters Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
295+
* @param null|string $filters Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. You can't combine multiple filters with `OR` and you can't use numeric filters.
296296
*
297297
* @return self
298298
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Condition(BaseModel):
4747
context: Optional[str] = None
4848
""" An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters. """
4949
filters: Optional[str] = None
50-
""" Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. """
50+
""" Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. You can't combine multiple filters with `OR` and you can't use numeric filters. """
5151

5252
@field_validator("context")
5353
def context_validate_regular_expression(cls, value):

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Condition
1919
# An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
2020
attr_accessor :context
2121

22-
# Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
22+
# Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. You can't combine multiple filters with `OR` and you can't use numeric filters.
2323
attr_accessor :filters
2424

2525
# Attribute mapping from ruby-style variable name to JSON key.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ import algoliasearch.search.Anchoring._
4949
* parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching
5050
* `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
5151
* @param filters
52-
* Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is
53-
* triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern`
54-
* parameter.
52+
* Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is triggered,
53+
* when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
54+
* You can't combine multiple filters with `OR` and you can't use numeric filters.
5555
*/
5656
case class Condition(
5757
pattern: Option[String] = scala.None,

clients/algoliasearch-client-swift/Sources/Search/Models/SearchCondition.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public struct SearchCondition: Codable, JSONEncodable {
1919
/// parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching
2020
/// `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
2121
public var context: String?
22-
/// Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is
22+
/// Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is
2323
/// triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the
24-
/// `pattern` parameter.
24+
/// `pattern` parameter. You can't combine multiple filters with `OR` and you can't use numeric filters.
2525
public var filters: String?
2626

2727
public init(

docs/bundled/search.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22433,11 +22433,14 @@ components:
2243322433
Filters that trigger the rule.
2243422434

2243522435

22436-
You can add add filters using the syntax `facet:value` so that the
22437-
rule is triggered, when the specific filter is selected.
22436+
You can add filters using the syntax `facet:value` so that the rule
22437+
is triggered, when the specific filter is selected.
2243822438

2243922439
You can use `filters` on its own or combine it with the `pattern`
2244022440
parameter.
22441+
22442+
You can't combine multiple filters with `OR` and you can't use
22443+
numeric filters.
2244122444
example: genre:comedy
2244222445
editType:
2244322446
description: Type of edit.

specs/bundled/search.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7242,11 +7242,14 @@ components:
72427242
Filters that trigger the rule.
72437243
72447244
7245-
You can add add filters using the syntax `facet:value` so that the
7246-
rule is triggered, when the specific filter is selected.
7245+
You can add filters using the syntax `facet:value` so that the rule
7246+
is triggered, when the specific filter is selected.
72477247
72487248
You can use `filters` on its own or combine it with the `pattern`
72497249
parameter.
7250+
7251+
You can't combine multiple filters with `OR` and you can't use
7252+
numeric filters.
72507253
example: genre:comedy
72517254
editType:
72527255
description: Type of edit.

0 commit comments

Comments
 (0)