elastic_searchable 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -109,7 +109,7 @@ module ElasticSearchable
109
109
  @index_lifecycle = lifecycle ? lifecycle.to_sym : nil
110
110
  _run_index_callbacks
111
111
 
112
- @percolations = response['matches']
112
+ @percolations = response['matches'] || []
113
113
  _run_percolate_callbacks if @percolations.any?
114
114
  end
115
115
  # document to index in elasticsearch
@@ -1,4 +1,4 @@
1
1
  module ElasticSearchable
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_searchable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek