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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4c30e31be95b7e85d8a77df32ec0dc3bc5a3ee6
|
4
|
+
data.tar.gz: de91fb28430cd48edbd7aaac337c8f4906d5e187
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
63
|
+
subclasses.sort_by(&:model_name).map { |cls| cls.import(options, &block) }.sum
|
64
64
|
end
|
65
65
|
end
|
66
66
|
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.
|
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-
|
11
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|