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 +4 -4
- data/CHANGELOG +2 -0
- data/lib/elasticity/search.rb +1 -1
- data/lib/elasticity/version.rb +1 -1
- data/spec/units/search_spec.rb +2 -2
- 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: d23da2ce62e5c886c146abf9e289efcba870973a
|
4
|
+
data.tar.gz: a61e837a470403a33f0ee0eac20892b2dcd244a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67b435f7ab2e088645f704f675a2ec6307dbdb1e56f691da056e815e76dd1034968796f4d82b8d823c097063635f389bcb0952ed75649f81a2dce643a2d0b11b
|
7
|
+
data.tar.gz: 4d18f0d03706beecf3f6330999b29d61c82ae6349f992cfd653bc6edff8a52ef55a97a8f3d5cfd0ff62bc0f5fd277235ef6852c21bd9c2b2aa78cf5b1ce72954
|
data/CHANGELOG
CHANGED
data/lib/elasticity/search.rb
CHANGED
@@ -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)
|
data/lib/elasticity/version.rb
CHANGED
data/spec/units/search_spec.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2017-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|