File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/main/scala/algoliasearch/api Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -928,16 +928,20 @@ class SearchClient(
928
928
*
929
929
* @param indexName
930
930
* Name of the index on which to perform the operation.
931
+ * @param getVersion
932
+ * When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward
933
+ * compatibility.
931
934
*/
932
- def getSettings (indexName : String , requestOptions : Option [RequestOptions ] = None )(implicit
933
- ec : ExecutionContext
935
+ def getSettings (indexName : String , getVersion : Option [ Int ] = None , requestOptions : Option [RequestOptions ] = None )(
936
+ implicit ec : ExecutionContext
934
937
): Future [SettingsResponse ] = Future {
935
938
requireNotNull(indexName, " Parameter `indexName` is required when calling `getSettings`." )
936
939
937
940
val request = HttpRequest
938
941
.builder()
939
942
.withMethod(" GET" )
940
943
.withPath(s " /1/indexes/ ${escape(indexName)}/settings " )
944
+ .withQueryParameter(" getVersion" , getVersion)
941
945
.build()
942
946
execute[SettingsResponse ](request, requestOptions)
943
947
}
You can’t perform that action at this time.
0 commit comments