Skip to content

Commit 72293fb

Browse files
fix(specs): returns an response [skip-bc] (generated)
algolia/api-clients-automation#4107 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
1 parent a75d30b commit 72293fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/algolia/api/search_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,10 +860,10 @@ def delete_by_with_http_info(index_name, delete_by_params, request_options = {})
860860
# @param index_name [String] Name of the index on which to perform the operation. (required)
861861
# @param delete_by_params [DeleteByParams] (required)
862862
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
863-
# @return [DeletedAtResponse]
863+
# @return [UpdatedAtResponse]
864864
def delete_by(index_name, delete_by_params, request_options = {})
865865
response = delete_by_with_http_info(index_name, delete_by_params, request_options)
866-
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeletedAtResponse")
866+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::UpdatedAtResponse")
867867
end
868868

869869
# Deletes an index and all its settings. - Deleting an index doesn't delete its analytics data. - If you try to delete a non-existing index, the operation is ignored without warning. - If the index you want to delete has replica indices, the replicas become independent indices. - If the index you want to delete is a replica index, you must first unlink it from its primary index before you can delete it. For more information, see [Delete replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/deleting-replicas/).

0 commit comments

Comments
 (0)