co-elastic-query 1.0.9 → 1.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb69eb7c09bf694d2fde1be05798c6317704eed7
4
- data.tar.gz: 19f8a209de01e39c7053a600339fb9e1d21a39fd
3
+ metadata.gz: e94c8425ecf401d73b82251269377bc1d2cb9cfe
4
+ data.tar.gz: 6bba205713da3df95335b1f614360e7e367fcba0
5
5
  SHA512:
6
- metadata.gz: 5df31e54619ce1e3798bf6de57730909e021c477a45bdf4e501a58b5b773d8a74fb810147edba3fb48b3204f8560feccdd63ed102813cdfb7834bfadf1b6fe5a
7
- data.tar.gz: 280db23f0a3356fd7832053a5d23af430cf9d18b5f477854183199fad8fd24b37dc0443566f8981b40565350d95d1a2e9303c7467c00d1cc9f9bd6f7872d40c3
6
+ metadata.gz: 3090a78ef6542089a821e086fb37fa953372812f1105949dd824d39ca9efb964691bf4f6f997b2ebef09b7df5ad9723823ac4f875ebd92520d4b136d392b65bd
7
+ data.tar.gz: 3feead0db5492d9a37f35bb498a8bcc56099e888254a855a1d6e452e00a14d85be839e37445e74226b0713442512232efae5d995efef6f413f1b0e75bb257307
@@ -1,3 +1,3 @@
1
1
  module CoElasticQuery
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  end
@@ -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: 1.0.9
4
+ version: 1.0.10
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