elastic_record 3.1.0 → 3.1.1

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: e32b643fefbe0e2111407df6599cf860522315e4
4
- data.tar.gz: 0aaf7803267b28fe5b68c82eb759dae1c594bbf3
3
+ metadata.gz: 3554208d8b85cd26b25c1a8dcc0583b4d2162383
4
+ data.tar.gz: 5f6b101f847df19e1f5a5c2e5606477b383b35b9
5
5
  SHA512:
6
- metadata.gz: 94a5f56253f6fc7bbe185c55ca4552e5e3bcf12bee9bc7aa55539fad0f6857f20225c2933ca4a9ed0a9a7df0a2b356942f6a2375ac976c8450d9798deeb0c900
7
- data.tar.gz: 81a1d64dd962321b20e9bc63ff5709b8d5db8f126a28b1b231aa69a4e4fed61124d568dba289afab7fd9e050ffee4df79542f83ccabb6356cf6bfe7c7e0b0097
6
+ metadata.gz: 2e281730247003f42fb3788cba4766807a4facafab2ac3def9baa62b4c753962a4343ffd854abbdf03603251170c521b9d1b3ff34978128ce4ffc9988ab64767
7
+ data.tar.gz: 36571be68a155eca663f0cc4eef6a28f1407ac88654fac10dcf218e6e779973cc640f6afed53be034243c6cb2493a8a9c6f387c677cbb70b7314c3c17a17569f
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'elastic_record'
5
- s.version = '3.1.0'
5
+ s.version = '3.1.1'
6
6
  s.summary = 'An Elasticsearch querying ORM'
7
7
  s.description = 'Find your records with Elasticsearch'
8
8
 
@@ -18,9 +18,16 @@ module ElasticRecord
18
18
  end
19
19
  end
20
20
 
21
+ def request_more_hits
22
+ request_next_scroll['hits']['hits']
23
+ end
24
+
21
25
  def request_more_ids
22
- json = @elastic_index.scroll(@scroll_id, keep_alive)
23
- json['hits']['hits'].map { |hit| hit['_id'] }
26
+ request_more_hits.map { |hit| hit['_id'] }
27
+ end
28
+
29
+ def request_next_scroll
30
+ @elastic_index.scroll(@scroll_id, keep_alive)
24
31
  end
25
32
 
26
33
  def keep_alive
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infogroup
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-11 00:00:00.000000000 Z
12
+ date: 2016-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: arelastic