stretcher 1.21.0.beta1 → 1.21.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stretcher/index.rb +1 -1
- data/lib/stretcher/version.rb +1 -1
- data/spec/lib/stretcher_index_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ce236606130c06da32f892b0dc2b65bae05118f
|
4
|
+
data.tar.gz: d609025a35624c98fa675dfe4fa878a8900f7e61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbc088865620e42c268673837cd6c66ac8398f7643ff00be75e12a8310b15050010355f86d3e3d4c1fd64d0c1b325b2c6fdad51f2393d0b0c6712bf25ca25eee
|
7
|
+
data.tar.gz: 6e54d0d191f3a7adfc507ad7c1f3743b3bb11132198b4d84e4c01b303544b109b673d02de6a03eb108910ce49653b1e878773ec6e939d59ce9e6307ffb162231
|
data/lib/stretcher/index.rb
CHANGED
@@ -197,7 +197,7 @@ module Stretcher
|
|
197
197
|
# suggest("band_complete", "a", field: :suggest)
|
198
198
|
# Use the new completion suggest API per http://www.elasticsearch.org/guide/reference/api/search/completion-suggest/
|
199
199
|
def suggest(name, text, completion={})
|
200
|
-
request(:post, "_suggest", {name => {:text => text, :completion => completion}})
|
200
|
+
request(:post, "_suggest", nil, {name => {:text => text, :completion => completion}})
|
201
201
|
end
|
202
202
|
|
203
203
|
# Full path to this index
|
data/lib/stretcher/version.rb
CHANGED
@@ -156,7 +156,7 @@ describe Stretcher::Index do
|
|
156
156
|
:completion => {:field => "sug-field"}}}
|
157
157
|
index.
|
158
158
|
should_receive(:request).
|
159
|
-
with(:post, "_suggest", expected).once.and_return(:result)
|
159
|
+
with(:post, "_suggest", nil, expected).once.and_return(:result)
|
160
160
|
index.suggest("sug-alias", "prefix", field: "sug-field").should == :result
|
161
161
|
end
|
162
162
|
end
|