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 {
11681168 ///
11691169 /// Parameters:
11701170 /// * [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.
11711172 /// * [requestOptions] additional request configuration.
11721173 Future <SettingsResponse > getSettings ({
11731174 required String indexName,
1175+ int ? getVersion,
11741176 RequestOptions ? requestOptions,
11751177 }) async {
11761178 assert (
@@ -1181,6 +1183,9 @@ final class SearchClient implements ApiClient {
11811183 method: RequestMethod .get ,
11821184 path: r'/1/indexes/{indexName}/settings' .replaceAll (
11831185 '{' r'indexName' '}' , Uri .encodeComponent (indexName.toString ())),
1186+ queryParams: {
1187+ if (getVersion != null ) 'getVersion' : getVersion,
1188+ },
11841189 );
11851190 final response = await _retryStrategy.execute (
11861191 request: request,
You can’t perform that action at this time.
0 commit comments