stretcher 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stretcher/index_type.rb +4 -2
- data/lib/stretcher/version.rb +1 -1
- metadata +2 -2
data/lib/stretcher/index_type.rb
CHANGED
@@ -44,8 +44,10 @@ module Stretcher
|
|
44
44
|
# To update a doc with ID 987 for example:
|
45
45
|
# type.update(987, script: "ctx._source.message = 'Updated!'")
|
46
46
|
# See http://www.elasticsearch.org/guide/reference/api/update.html
|
47
|
-
|
48
|
-
|
47
|
+
# Takes an optional, third options hash, allowing you to specify
|
48
|
+
# Additional query parameters such as +fields+ and +routing+
|
49
|
+
def update(id, body, options={})
|
50
|
+
request(:post, Util.qurl("#{id}/_update", options), body)
|
49
51
|
end
|
50
52
|
|
51
53
|
# Deletes the document with the given ID
|
data/lib/stretcher/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stretcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|