co-elastic-query 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d851fa234bce9d77d291f62372856193735f9626
4
- data.tar.gz: 80ba41366f83e32e3095a660d496b84502a4c5d8
3
+ metadata.gz: 8e3fb9ba90a808ff341e022f5e5b7e0009021bb6
4
+ data.tar.gz: 8dd233088b49b9a4afe0ae15c4bf332e14044313
5
5
  SHA512:
6
- metadata.gz: eed8442c1cdf8eb3976945fcfe157f5032f9b4f17d9b4dc57e04cd7c06beeb0a61d19473cd3a855fc5f8e264d6356b695cc3c3b3ba5aa9db32486d5f78b976c0
7
- data.tar.gz: 34972d0ca63ace7afc763ff53c8a22629f946945e099b01d3be27e3588b68cfae9c52d3c221e20658d780bd6514beda0b28dee62d8446cfdb99857446bf1f1e0
6
+ metadata.gz: e3cc9e20945e24cb1634bbdf0c50b2b5d392768a5630ad44abc5fbec64f07aa5369414e62ae83bbf228bc2f9db6a14463187c76af4ae7aa7e1069f2542a5a9d8
7
+ data.tar.gz: 7410177894cd990fdd43f8585675494e352f66440a14d0303cb73a3f708b98aa5f4554593cef268cc9ef89dad2ab47977c2a8dc93425f514bd28fce926109475
@@ -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: {
@@ -1,3 +1,3 @@
1
1
  module CoElasticQuery
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
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.1
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-02 00:00:00.000000000 Z
12
+ date: 2016-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler