elasticsearch-model-mongoid_extensions 0.1.1 → 0.1.2
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: 0ed2b94a0cfda4ff5b9afe35aa78739647dbe8bd
|
4
|
+
data.tar.gz: 7f1803ad6695d196ece9ce4c4f7f89fa6a7fe370
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f42ee3be852ac504033a8a1adf8483dcf0f1d0dc9f63c062c8ec34b961c6ae8a3001b30a94aa1ff76f4efe5e459a775a4d3088d88da58ad6346ee29b2aadd0f6
|
7
|
+
data.tar.gz: 754ddf94b5e9ba6584769413cf06c48353566113dc8480bf84bb95d26b4dc85e334a902491671210946b86c5967216ebea75a5956d569f9c717d8a25e3c8efe5
|
@@ -42,13 +42,15 @@ module Elasticsearch
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def create_index!(options = {})
|
45
|
-
__elasticsearch__.create_index!(options)
|
46
|
-
descendants.each { |cls| cls.__elasticsearch__.create_index!(options) }
|
45
|
+
res = Array(__elasticsearch__.create_index!(options))
|
46
|
+
descendants.each { |cls| res << cls.__elasticsearch__.create_index!(options) }
|
47
|
+
res.compact
|
47
48
|
end
|
48
49
|
|
49
50
|
def refresh_index!(options = {})
|
50
|
-
__elasticsearch__.refresh_index!(options)
|
51
|
-
descendants.each { |cls| cls.__elasticsearch__.refresh_index!(options) }
|
51
|
+
res = Array(__elasticsearch__.refresh_index!(options))
|
52
|
+
descendants.each { |cls| res << cls.__elasticsearch__.refresh_index!(options) }
|
53
|
+
res.compact
|
52
54
|
end
|
53
55
|
|
54
56
|
def search(query_or_payload, options = {})
|