Skip to content

Commit c1a43b4

Browse files
committed
Add refresh param
1 parent cd9c337 commit c1a43b4

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,12 @@ 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+
*/
54+
refresh?: boolean
55+
}
4856
}

specification/synonyms/put_synonym/SynonymsPutRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,12 @@ 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+
*/
61+
refresh?: boolean
62+
}
5563
}

specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,12 @@ 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+
*/
66+
refresh?: boolean
67+
}
6068
}

0 commit comments

Comments
 (0)