elasticsearch-model-mongoid_extensions 0.1.3 → 0.1.4

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: 36210ad309373d7915f8a8ca863c69b31cc3e2ac
4
- data.tar.gz: 599f88c78d247ac0adbb94591026a8035bf14112
3
+ metadata.gz: d4c30e31be95b7e85d8a77df32ec0dc3bc5a3ee6
4
+ data.tar.gz: de91fb28430cd48edbd7aaac337c8f4906d5e187
5
5
  SHA512:
6
- metadata.gz: 7c3f44092e0f216d805bad1b6beb34204e0820b62d15565337c9d562ec3375e854c91abb10fce8ac86776f2996561282aa09852f02640e91b24d1dbf114437c8
7
- data.tar.gz: c2c4c95770b1cce3477ae5461a6571484faff5faf05dc6bb0a605804caf48727496007a632cc3ba071912bde1a9e7626561d7a4783c7e5cc4676c4a3e2243dae
6
+ metadata.gz: 2ca6ad3a53ad231ac0eae1dcedd139cd512ee8f234e648e54c1c3717247e2637eb7d615855a55fa8a916003c66606db9d83211982bb187bc06d6d163e619964f
7
+ data.tar.gz: 277610d4cb543c431ba00d84dc22c7c46d5f699e0d66827de8ce7fc5a082373c32e67b776e691f825a542cff1d21c4593505fad283d98e677569ce918fbe6ef5
@@ -55,12 +55,12 @@ module Elasticsearch
55
55
 
56
56
  def search(query_or_payload, options = {})
57
57
  models = options.fetch :models, [self] + descendants
58
- Elasticsearch::Model.search(query_or_payload, models, options)
58
+ Elasticsearch::Model.search(query_or_payload, models, options.except(:models))
59
59
  end
60
60
 
61
61
  def import(options = {}, &block)
62
62
  __elasticsearch__.import(options.merge(criteria: criteria.type(to_s)), &block).to_i +
63
- subclasses.sort_by(&:model_name).map { |cls| cls.import(options, &block) }.sum
63
+ subclasses.sort_by(&:model_name).map { |cls| cls.import(options, &block) }.sum
64
64
  end
65
65
  end
66
66
  end
@@ -1,7 +1,7 @@
1
1
  module Elasticsearch
2
2
  module Model
3
3
  module MongoidExtensions
4
- VERSION = '0.1.3'.freeze
4
+ VERSION = '0.1.4'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-model-mongoid_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-16 00:00:00.000000000 Z
11
+ date: 2016-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport