Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

put -> delete

  • Loading branch information...
commit f9e21dae4c514e355ea36c7f772345a37b2eb735 1 parent e779796
@loniszczuk loniszczuk authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/indextank/index.rb
View
3  lib/indextank/index.rb
@@ -82,7 +82,7 @@ def bulk_delete(docids)
docids.each do |docid|
data << {'docid': docid}
end
- resp = @conn.put do |req|
+ resp = @conn.delete do |req|
req.url "docs"
req.body = data.to_json
end
@@ -102,7 +102,6 @@ def bulk_delete(docids)
end
end
-
# the options argument may contain an :index_code definition to override
# this instance's default index_code
# it can also contain any of the following:
Please sign in to comment.
Something went wrong with that request. Please try again.