lib/algolia/client.rb in algoliasearch-1.19.1 vs lib/algolia/client.rb in algoliasearch-1.19.2
- old
+ new
@@ -132,11 +132,11 @@
post(Protocol.multiple_queries_uri(strategy), requests.to_json, :search, request_options)
end
#
# List all existing indexes
- # return an Answer object with answer in the form
+ # return an Answer object with answer in the form
# {"items": [{ "name": "contacts", "createdAt": "2013-01-18T15:33:13.556Z"},
# {"name": "notes", "createdAt": "2013-01-18T15:33:13.556Z"}]}
#
# @param request_options contains extra parameters to send with your query
#
@@ -192,19 +192,23 @@
init_index(dst_index).wait_task(res['taskID'], WAIT_TASK_DEFAULT_TIME_BEFORE_RETRY, request_options)
res
end
# Delete an index
+ # @param name the name of the index to delete
+ # @param request_options contains extra parameters to send with your query
#
- def delete_index(name)
- init_index(name).delete
+ def delete_index(name, request_options = {})
+ init_index(name).delete(request_options)
end
# Delete an index and wait until the deletion has been processed.
+ # @param name the name of the index to delete
+ # @param request_options contains extra parameters to send with your query
#
- def delete_index!(name)
- init_index(name).delete!
+ def delete_index!(name, request_options = {})
+ init_index(name).delete!(request_options)
end
#
# Return last logs entries.
#
@@ -577,10 +581,10 @@
Algolia.client.multiple_queries(queries, options, strategy)
end
#
# List all existing indexes
- # return an Answer object with answer in the form
+ # return an Answer object with answer in the form
# {"items": [{ "name": "contacts", "createdAt": "2013-01-18T15:33:13.556Z"},
# {"name": "notes", "createdAt": "2013-01-18T15:33:13.556Z"}]}
#
# @param request_options contains extra parameters to send with your query
#