elastictastic 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -36,9 +36,12 @@ module Elastictastic
|
|
36
36
|
when 1
|
37
37
|
id = ids.first
|
38
38
|
instance = scoped({}).find_one(id, :preference => '_primary_first')
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
if instance
|
40
|
+
found << id
|
41
|
+
instances = [instance]
|
42
|
+
else
|
43
|
+
instances = []
|
44
|
+
end
|
42
45
|
else
|
43
46
|
instances = scoped({}).
|
44
47
|
find_many(ids, :preference => '_primary_first')
|