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(
928928 *
929929 * @param indexName
930930 * 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.
931934 */
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
934937 ): Future [SettingsResponse ] = Future {
935938 requireNotNull(indexName, " Parameter `indexName` is required when calling `getSettings`." )
936939
937940 val request = HttpRequest
938941 .builder()
939942 .withMethod(" GET" )
940943 .withPath(s " /1/indexes/ ${escape(indexName)}/settings " )
944+ .withQueryParameter(" getVersion" , getVersion)
941945 .build()
942946 execute[SettingsResponse ](request, requestOptions)
943947 }
You can’t perform that action at this time.
0 commit comments