es-elasticity 0.8.1 → 0.8.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: 273883b20e8b274c5029f67bc93985b5f2405348
4
- data.tar.gz: 5960c883e06d2bcfa72e501f3fc4dbd0cd941c46
3
+ metadata.gz: d23da2ce62e5c886c146abf9e289efcba870973a
4
+ data.tar.gz: a61e837a470403a33f0ee0eac20892b2dcd244a9
5
5
  SHA512:
6
- metadata.gz: 1d9ecb7b3ede09bc2ea49b64cd3752fd8ca502b2381aee55e9dd3ce421f1a1c72f7d0dcb1a02fa8d8af5bdc66d9110f7cfc1025396d85fbb8a4126ab3e0b140b
7
- data.tar.gz: d10e1f5da32facb6a8ecaead082f71add59a876de3e6220db95fb0984a50a09d2540d9cfd83e3fc3fa3186a70b745ba1c4b50dfedc17b2ba1c32f0f2ebd0ea85
6
+ metadata.gz: 67b435f7ab2e088645f704f675a2ec6307dbdb1e56f691da056e815e76dd1034968796f4d82b8d823c097063635f389bcb0952ed75649f81a2dce643a2d0b11b
7
+ data.tar.gz: 4d18f0d03706beecf3f6330999b29d61c82ae6349f992cfd653bc6edff8a52ef55a97a8f3d5cfd0ff62bc0f5fd277235ef6852c21bd9c2b2aa78cf5b1ce72954
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.8.2
2
+ - fix scan api to work with more recent versions of elasticsearch ruby.
1
3
  v0.8.1
2
4
  - loosen support for elasticsearch-ruby versions to support more versions of
3
5
  elasticsearch
@@ -166,7 +166,7 @@ module Elasticity
166
166
  response = search
167
167
 
168
168
  loop do
169
- response = @client.scroll(scroll_id: response["_scroll_id"], scroll: @scroll)
169
+ response = @client.scroll(scroll_id: response["_scroll_id"], scroll: @scroll, body: { scroll_id: response["_scroll_id"] })
170
170
  break if response["hits"]["hits"].empty?
171
171
 
172
172
  y << Search::Results.new(response, @search_definition.body, @mapper)
@@ -1,3 +1,3 @@
1
1
  module Elasticity
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
@@ -109,8 +109,8 @@ RSpec.describe "Search" do
109
109
 
110
110
  it "searches using scan&scroll" do
111
111
  expect(client).to receive(:search).with(index: index_name, type: document_type, body: body, search_type: :query_then_fetch, size: 100, scroll: "1m").and_return(scan_response)
112
- expect(client).to receive(:scroll).with(scroll_id: "abc123", scroll: "1m").and_return(scroll_response)
113
- expect(client).to receive(:scroll).with(scroll_id: "abc456", scroll: "1m").and_return(empty_response)
112
+ expect(client).to receive(:scroll).with(scroll_id: "abc123", scroll: "1m", body: { scroll_id: "abc123" }).and_return(scroll_response)
113
+ expect(client).to receive(:scroll).with(scroll_id: "abc456", scroll: "1m", body: { scroll_id: "abc456" }).and_return(empty_response)
114
114
 
115
115
  docs = subject.scan_documents(mapper)
116
116
  expected = [klass.new(_id: 1, name: "foo"), klass.new(_id: 2, name: "bar")]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: es-elasticity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Kochenburger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-21 00:00:00.000000000 Z
11
+ date: 2017-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler