stretchy 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stretchy/utils/client_actions.rb +4 -2
- data/lib/stretchy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5822801c4cec4719808f4679f787570f97524b29
|
4
|
+
data.tar.gz: 4684f243aee61ab42f4cc0032163301674afe5df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ab85cf648c091546af556e5a4d86efa91f92889fdc155496be089087f546b8b1b0da6cc72e3868fde31f4b9178b8371211bf96f5deda5f730b2f6fe4af4c2c3
|
7
|
+
data.tar.gz: 21ccd5b5e9178dddd2c9a5fefe1ce056a56458a62b9d3f3a0777b225c6bb3756c2a8788909b5822f419343e8d9d03567fe06cdb39ac1ff7840351b8062c3232e
|
@@ -24,9 +24,11 @@ module Stretchy
|
|
24
24
|
def search(options = {})
|
25
25
|
params = {}
|
26
26
|
params[:index] = options[:index] || index_name
|
27
|
-
params[:type] = options[:type]
|
28
27
|
params[:fields] = Array(options[:fields]) if options[:fields]
|
29
|
-
|
28
|
+
|
29
|
+
[:type, :body, :from, :size, :explain].each do |field|
|
30
|
+
params[field] = options[field] if options[field]
|
31
|
+
end
|
30
32
|
|
31
33
|
client.search(params)
|
32
34
|
end
|
data/lib/stretchy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stretchy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agius
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: elasticsearch
|