File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/client_search/lib/src/api Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1168,9 +1168,11 @@ final class SearchClient implements ApiClient {
1168
1168
///
1169
1169
/// Parameters:
1170
1170
/// * [indexName] Name of the index on which to perform the operation.
1171
+ /// * [getVersion] When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility.
1171
1172
/// * [requestOptions] additional request configuration.
1172
1173
Future <SettingsResponse > getSettings ({
1173
1174
required String indexName,
1175
+ int ? getVersion,
1174
1176
RequestOptions ? requestOptions,
1175
1177
}) async {
1176
1178
assert (
@@ -1181,6 +1183,9 @@ final class SearchClient implements ApiClient {
1181
1183
method: RequestMethod .get ,
1182
1184
path: r'/1/indexes/{indexName}/settings' .replaceAll (
1183
1185
'{' r'indexName' '}' , Uri .encodeComponent (indexName.toString ())),
1186
+ queryParams: {
1187
+ if (getVersion != null ) 'getVersion' : getVersion,
1188
+ },
1184
1189
);
1185
1190
final response = await _retryStrategy.execute (
1186
1191
request: request,
You can’t perform that action at this time.
0 commit comments