Skip to content

Commit ba6ec97

Browse files
algolia-botmillotp
andcommitted
fix(clients): add a default idleConnTimeout (generated)
algolia/api-clients-automation#5442 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent d1483b5 commit ba6ec97

File tree

79 files changed

+473
-474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+473
-474
lines changed

algoliasearch/abtesting/models/ab_test_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ABTestResponse(BaseModel):
3939
ab_test_id: int
4040
""" Unique A/B test identifier. """
4141
task_id: int
42-
""" Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task's progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`. """
42+
""" Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task's progress with the [`task` operation](https://www.algolia.com/doc/rest-api/search/get-task) and this task ID. """
4343

4444
model_config = ConfigDict(
4545
strict=False,

algoliasearch/abtesting_v3/models/ab_test_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ABTestResponse(BaseModel):
3939
ab_test_id: int
4040
""" Unique A/B test identifier. """
4141
task_id: int
42-
""" Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task's progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`. """
42+
""" Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task's progress with the [`task` operation](https://www.algolia.com/doc/rest-api/search/get-task) and this task ID. """
4343

4444
model_config = ConfigDict(
4545
strict=False,

algoliasearch/analytics/client.py

Lines changed: 188 additions & 188 deletions
Large diffs are not rendered by default.

algoliasearch/composition/client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ async def get_rule_with_http_info(
659659
request_options: Optional[Union[dict, RequestOptions]] = None,
660660
) -> ApiResponse[str]:
661661
"""
662-
Retrieves a rule by its ID. To find the object ID of rules, use the [`search` operation](#tag/Rules/operation/searchRules).
662+
Retrieves a rule by its ID. To find the object ID of a rule, use the [`search` operation](https://www.algolia.com/doc/rest-api/composition/search-composition-rules).
663663
664664
Required API Key ACLs:
665665
- editSettings
@@ -705,7 +705,7 @@ async def get_rule(
705705
request_options: Optional[Union[dict, RequestOptions]] = None,
706706
) -> CompositionRule:
707707
"""
708-
Retrieves a rule by its ID. To find the object ID of rules, use the [`search` operation](#tag/Rules/operation/searchRules).
708+
Retrieves a rule by its ID. To find the object ID of a rule, use the [`search` operation](https://www.algolia.com/doc/rest-api/composition/search-composition-rules).
709709
710710
Required API Key ACLs:
711711
- editSettings
@@ -1016,7 +1016,7 @@ async def put_composition_rule_with_http_info(
10161016
request_options: Optional[Union[dict, RequestOptions]] = None,
10171017
) -> ApiResponse[str]:
10181018
"""
1019-
Upsert a Composition Rule for the specified composition ID.
1019+
If a composition rule with the provided ID already exists, it's replaced. Otherwise, a new one is added.
10201020
10211021
Required API Key ACLs:
10221022
- editSettings
@@ -1074,7 +1074,7 @@ async def put_composition_rule(
10741074
request_options: Optional[Union[dict, RequestOptions]] = None,
10751075
) -> TaskIDResponse:
10761076
"""
1077-
Upsert a Composition Rule for the specified composition ID.
1077+
If a composition rule with the provided ID already exists, it's replaced. Otherwise, a new one is added.
10781078
10791079
Required API Key ACLs:
10801080
- editSettings
@@ -2009,7 +2009,7 @@ def get_rule_with_http_info(
20092009
request_options: Optional[Union[dict, RequestOptions]] = None,
20102010
) -> ApiResponse[str]:
20112011
"""
2012-
Retrieves a rule by its ID. To find the object ID of rules, use the [`search` operation](#tag/Rules/operation/searchRules).
2012+
Retrieves a rule by its ID. To find the object ID of a rule, use the [`search` operation](https://www.algolia.com/doc/rest-api/composition/search-composition-rules).
20132013
20142014
Required API Key ACLs:
20152015
- editSettings
@@ -2055,7 +2055,7 @@ def get_rule(
20552055
request_options: Optional[Union[dict, RequestOptions]] = None,
20562056
) -> CompositionRule:
20572057
"""
2058-
Retrieves a rule by its ID. To find the object ID of rules, use the [`search` operation](#tag/Rules/operation/searchRules).
2058+
Retrieves a rule by its ID. To find the object ID of a rule, use the [`search` operation](https://www.algolia.com/doc/rest-api/composition/search-composition-rules).
20592059
20602060
Required API Key ACLs:
20612061
- editSettings
@@ -2362,7 +2362,7 @@ def put_composition_rule_with_http_info(
23622362
request_options: Optional[Union[dict, RequestOptions]] = None,
23632363
) -> ApiResponse[str]:
23642364
"""
2365-
Upsert a Composition Rule for the specified composition ID.
2365+
If a composition rule with the provided ID already exists, it's replaced. Otherwise, a new one is added.
23662366
23672367
Required API Key ACLs:
23682368
- editSettings
@@ -2420,7 +2420,7 @@ def put_composition_rule(
24202420
request_options: Optional[Union[dict, RequestOptions]] = None,
24212421
) -> TaskIDResponse:
24222422
"""
2423-
Upsert a Composition Rule for the specified composition ID.
2423+
If a composition rule with the provided ID already exists, it's replaced. Otherwise, a new one is added.
24242424
24252425
Required API Key ACLs:
24262426
- editSettings

algoliasearch/composition/models/base_injection_query_parameters.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,32 +112,32 @@ class BaseInjectionQueryParameters(BaseModel):
112112
attribute_criteria_computed_by_min_proximity: Optional[bool] = None
113113
""" Whether the best matching attribute should be determined by minimum proximity This setting only affects ranking if the Attribute ranking criterion comes before Proximity in the `ranking` setting. If true, the best matching attribute is selected based on the minimum proximity of multiple matches. Otherwise, the best matching attribute is determined by the order in the `searchableAttributes` setting. """
114114
attributes_to_highlight: Optional[List[str]] = None
115-
""" Attributes to highlight By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. Attribute names are case-sensitive With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/). """
115+
""" Attributes to highlight By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. Attribute names are case-sensitive With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js). """
116116
attributes_to_retrieve: Optional[List[str]] = None
117117
""" Attributes to include in the API response To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included. """
118118
attributes_to_snippet: Optional[List[str]] = None
119119
""" Attributes for which to enable snippets. Attribute names are case-sensitive Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted. """
120120
click_analytics: Optional[bool] = None
121-
""" Whether to include a `queryID` attribute in the response The query ID is a unique identifier for a search query and is required for tracking [click and conversion events](https://www.algolia.com/guides/sending-events/getting-started/). """
121+
""" Whether to include a `queryID` attribute in the response The query ID is a unique identifier for a search query and is required for tracking [click and conversion events](https://www.algolia.com/guides/sending-events/getting-started). """
122122
decompound_query: Optional[bool] = None
123123
""" Whether to split compound words in the query into their building blocks For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn't work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won't be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308). """
124124
disable_exact_on_attributes: Optional[List[str]] = None
125125
""" Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). Attribute names are case-sensitive This can be useful for attributes with long values, where the likelihood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking. """
126126
disable_typo_tolerance_on_attributes: Optional[List[str]] = None
127-
""" Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Attribute names are case-sensitive Returning only exact matches can help when - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos. """
127+
""" Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance). Attribute names are case-sensitive Returning only exact matches can help when - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos. """
128128
distinct: Optional[Distinct] = None
129129
enable_ab_test: Optional[bool] = None
130130
""" Whether to enable A/B testing for this search. """
131131
enable_personalization: Optional[bool] = None
132132
""" Whether to enable Personalization. """
133133
enable_re_ranking: Optional[bool] = None
134-
""" Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. """
134+
""" Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking) This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. """
135135
enable_rules: Optional[bool] = None
136136
""" Whether to enable rules. """
137137
exact_on_single_word_query: Optional[ExactOnSingleWordQuery] = None
138138
facet_filters: Optional[FacetFilters] = None
139139
filters: Optional[str] = None
140-
""" Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can't use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can't combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/). """
140+
""" Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can't use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can't combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering). """
141141
get_ranking_info: Optional[bool] = None
142142
""" Whether the search response should include detailed ranking information. """
143143
highlight_post_tag: Optional[str] = None
@@ -163,7 +163,7 @@ class BaseInjectionQueryParameters(BaseModel):
163163
personalization_impact: Optional[int] = None
164164
""" Impact that Personalization should have on this search The higher this value is, the more Personalization determines the ranking compared to other factors. For more information, see [Understanding Personalization impact](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact). """
165165
query_languages: Optional[List[SupportedLanguage]] = None
166-
""" Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first** **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/). """
166+
""" Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first** **You should always specify a query language.** If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations). """
167167
query_type: Optional[QueryType] = None
168168
remove_stop_words: Optional[RemoveStopWords] = None
169169
remove_words_if_no_results: Optional[RemoveWordsIfNoResults] = None

algoliasearch/composition/models/distinct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Distinct(BaseModel):
2626
oneof_schema_1_validator: Optional[bool] = Field(default=None)
2727
""" Whether deduplication is turned on. If true, only one member of a group is shown in the search results. """
2828
oneof_schema_2_validator: Optional[int] = Field(default=None)
29-
""" Number of members of a group of records to include in the search results. - Don't use `distinct > 1` for records that might be [promoted by rules](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/promote-hits/). The number of hits won't be correct and faceting won't work as expected. - With `distinct > 1`, the `hitsPerPage` parameter controls the number of returned groups. For example, with `hitsPerPage: 10` and `distinct: 2`, up to 20 records are returned. Likewise, the `nbHits` response attribute contains the number of returned groups. """
29+
""" Number of members of a group of records to include in the search results. - Don't use `distinct > 1` for records that might be [promoted by rules](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/promote-hits). The number of hits won't be correct and faceting won't work as expected. - With `distinct > 1`, the `hitsPerPage` parameter controls the number of returned groups. For example, with `hitsPerPage: 10` and `distinct: 2`, up to 20 records are returned. Likewise, the `nbHits` response attribute contains the number of returned groups. """
3030
actual_instance: Union[bool, int, None] = None
3131
one_of_schemas: Set[str] = {"bool", "int"}
3232

0 commit comments

Comments
 (0)