co-elastic-query 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/co-elastic-query.rb +5 -1
- data/lib/co-elastic-query/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: 8e3fb9ba90a808ff341e022f5e5b7e0009021bb6
|
|
4
|
+
data.tar.gz: 8dd233088b49b9a4afe0ae15c4bf332e14044313
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3cc9e20945e24cb1634bbdf0c50b2b5d392768a5630ad44abc5fbec64f07aa5369414e62ae83bbf228bc2f9db6a14463187c76af4ae7aa7e1069f2542a5a9d8
|
|
7
|
+
data.tar.gz: 7410177894cd990fdd43f8585675494e352f66440a14d0303cb73a3f708b98aa5f4554593cef268cc9ef89dad2ab47977c2a8dc93425f514bd28fce926109475
|
data/lib/co-elastic-query.rb
CHANGED
|
@@ -19,7 +19,7 @@ class Elastic
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
attr_accessor :offset, :limit, :sort, :fields
|
|
22
|
+
attr_accessor :offset, :limit, :sort, :fields, :query_settings
|
|
23
23
|
|
|
24
24
|
def raw_filter(filter)
|
|
25
25
|
@raw_filter ||= []
|
|
@@ -190,6 +190,10 @@ class Elastic
|
|
|
190
190
|
}
|
|
191
191
|
}]
|
|
192
192
|
|
|
193
|
+
if @query_settings
|
|
194
|
+
should[0][:simple_query_string].merge! @query_settings
|
|
195
|
+
end
|
|
196
|
+
|
|
193
197
|
if @hasChild
|
|
194
198
|
should << {
|
|
195
199
|
has_child: {
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: co-elastic-query
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen von Takach
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-07-
|
|
12
|
+
date: 2016-07-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|