elastic_record 4.1.5 → 4.1.6

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: a164c34c1dc47a0290401edc67c7b1e38d296cdb
4
- data.tar.gz: 26045f57baec0c90aca634cc853794e1782b1abd
3
+ metadata.gz: 280d853bc9f78ccd8acaef97387dd0d473a26dd7
4
+ data.tar.gz: adf8431d5e367c6fa801fa93e76e25ec2f60a1b7
5
5
  SHA512:
6
- metadata.gz: 6a03d0a53928c5ff59653eaa3e7cd00d414cbdb7244e533541426612b233a0fe90abe27b903f391664c1fa3763c42923245d3c2cb54f4c19d521632686d64102
7
- data.tar.gz: 84348d5ad734efc2a9a350fc16d58d890e6d2e7765e7841c0d9d857ee99e031a8b4acd76cb9c530c2b84dc164054e5e346d61723f73e2b06553703c05d0e8f9f
6
+ metadata.gz: 2db626ce581a9ec1c8299ac2544b2b6f4b16bdd3548b4fd768355d66b39cac67d3f506297246110b328734424d4d4fcdc5249bb21a7db88b1c2c023b4cb31448
7
+ data.tar.gz: a4e6e27002915053b6d4220a45e2e33845b97b442726f364bcb70860d1a38c61bbf03b6f8bfb5cbba6af8ef44428d9ad77fae4e68face1e27936610b70869fcb
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'elastic_record'
5
- s.version = '4.1.5'
5
+ s.version = '4.1.6'
6
6
  s.summary = 'An Elasticsearch querying ORM'
7
7
  s.description = 'Find your records with Elasticsearch'
8
8
 
@@ -75,12 +75,9 @@ module ElasticRecord
75
75
  def search_results
76
76
  @search_results ||= begin
77
77
  options = search_type_value ? {search_type: search_type_value} : {}
78
+ search = as_elastic.update('_source' => klass.elastic_index.load_from_source)
78
79
 
79
- unless klass.elastic_index.load_from_source
80
- as_elastic.update('_source' => false)
81
- end
82
-
83
- klass.elastic_index.search(as_elastic, options)
80
+ klass.elastic_index.search(search, options)
84
81
  end
85
82
  end
86
83
 
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: 4.1.5
4
+ version: 4.1.6
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: 2017-09-14 00:00:00.000000000 Z
12
+ date: 2017-09-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: arelastic
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: 1.8.11
186
186
  requirements: []
187
187
  rubyforge_project:
188
- rubygems_version: 2.6.13
188
+ rubygems_version: 2.6.11
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: An Elasticsearch querying ORM