Skip to content

Commit 2843115

Browse files
authored
Synonyms API - Add refresh parameter (#4298)
1 parent bd35837 commit 2843115

File tree

10 files changed

+155
-30
lines changed

10 files changed

+155
-30
lines changed

output/openapi/elasticsearch-openapi.json

+32-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

+2-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

+9-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

+69-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/synonyms/_types/SynonymsUpdateResult.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export class SynonymsUpdateResult {
2727
result: Result
2828

2929
/**
30-
* Updating synonyms in a synonym set reloads the associated analyzers.
30+
* Updating synonyms in a synonym set can reload the associated analyzers in case refresh is set to true.
3131
* This information is the analyzers reloading result.
3232
*/
33-
reload_analyzers_details: ReloadResult
33+
reload_analyzers_details?: ReloadResult
3434
}

specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts

+9
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,13 @@ export interface Request extends RequestBase {
4545
*/
4646
rule_id: Id
4747
}
48+
query_parameters: {
49+
/**
50+
* If `true`, the request will refresh the analyzers with the deleted synonym rule and wait for the new synonyms to be available before returning.
51+
* If `false`, analyzers will not be reloaded with the deleted synonym rule
52+
* @server_default true
53+
* @availability stack since=9.1.0
54+
*/
55+
refresh?: boolean
56+
}
4857
}

specification/synonyms/put_synonym/SynonymsPutRequest.ts

+9
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,13 @@ export interface Request extends RequestBase {
5252
*/
5353
synonyms_set: SynonymRule | SynonymRule[]
5454
}
55+
query_parameters: {
56+
/**
57+
* If `true`, the request will refresh the analyzers with the new synonyms set and wait for the new synonyms to be available before returning.
58+
* If `false`, analyzers will not be reloaded with the new synonym set
59+
* @server_default true
60+
* @availability stack since=9.1.0
61+
*/
62+
refresh?: boolean
63+
}
5564
}

specification/synonyms/put_synonym/SynonymsPutResponse.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@ import { Result } from '@_types/Result'
2222

2323
export class Response {
2424
body: {
25+
/**
26+
* The update operation result.
27+
*/
2528
result: Result
26-
reload_analyzers_details: ReloadResult
29+
30+
/**
31+
* Updating a synonyms set can reload the associated analyzers in case refresh is set to true.
32+
* This information is the analyzers reloading result.
33+
*/
34+
reload_analyzers_details?: ReloadResult
2735
}
2836
}

specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts

+9
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,13 @@ export interface Request extends RequestBase {
5757
*/
5858
synonyms: SynonymString
5959
}
60+
query_parameters: {
61+
/**
62+
* If `true`, the request will refresh the analyzers with the new synonym rule and wait for the new synonyms to be available before returning.
63+
* If `false`, analyzers will not be reloaded with the new synonym rule
64+
* @server_default true
65+
* @availability stack since=9.1.0
66+
*/
67+
refresh?: boolean
68+
}
6069
}

0 commit comments

Comments
 (0)