elasticsearch-query-builder 0.6.2 → 0.6.3

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
  SHA256:
3
- metadata.gz: 0b6a648462251bcf6f84f77cb290e72581618a19d4bb892cce563d9250187f4c
4
- data.tar.gz: 0ed1a233975140973c4adafbac9c967714517ee0e5256b0867231c0c1efdafa7
3
+ metadata.gz: a99e5d260b541ea1c22482af82d6a2e3c98fa01ba73341c5930b0447f48ef4dc
4
+ data.tar.gz: 35b9eed46e89cea7d5e5c057c8e33882ab317cbcfe84d69260d07c605e4f09e5
5
5
  SHA512:
6
- metadata.gz: 3c7e4c28a07a1a5731499688b554e77ff3240e81222853868f155e5283e919e7e3f665360e093fded07647238dc13c79d6d1538b306ef34f1b04bd0c55b5f2b9
7
- data.tar.gz: 4f446a5c1449af205839e26a26e77191d4f740eea356230ade709c9525eab15ef00679f4fe3b35a7e1e627991653922ef698b4bb531ffd7b3bc09092cc1b0c9b
6
+ metadata.gz: b6544758961aa372c8eef3626810d607c4a2a72f9a6e2966d742672effcbb6a202fc2f002c830a790b2a970033c76662c926a1d4a7a526b202ee3ad3cda19e61
7
+ data.tar.gz: 764387e49f24a68d27d635cbaaddc31ee20164ccd18385251109067addc21800f45af6cb2200019bb11ac06ff5690c0c6d3ef71b3552b5ff518934fafd01d7a8
@@ -33,11 +33,12 @@ module ElasticSearch
33
33
  end
34
34
  end
35
35
 
36
- def initialize(opts: {}, mopts: [], client: nil, function_score: false)
36
+ def initialize(opts: {}, mopts: [], client: nil, function_score: false, options: {})
37
37
  @opts = opts
38
38
  @mopts = mopts
39
39
  @function_score = function_score
40
40
  @client = client
41
+ @options = options
41
42
  end
42
43
 
43
44
  def to_json(*_args)
@@ -47,7 +48,7 @@ module ElasticSearch
47
48
  def results
48
49
  raise 'client: should be set in order to fetch results' unless client
49
50
 
50
- client&.search(opts)&.results
51
+ client&.search(opts, options: options)&.results
51
52
  end
52
53
 
53
54
  def multisearch_results
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ElasticSearch
4
4
  class QueryBuilder
5
- VERSION = '0.6.2'
5
+ VERSION = '0.6.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-query-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kickser
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2019-12-04 00:00:00.000000000 Z
14
+ date: 2019-12-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler