We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29ca681 commit 1872668Copy full SHA for 1872668
elasticsearch-model/lib/elasticsearch/model/adapters/mongoid.rb
@@ -70,14 +70,14 @@ def __find_in_batches(options={}, &block)
70
items << item
71
72
if items.length % options[:batch_size] == 0
73
- batch_for_bulk = items.map { |a| { index: { _id: a.id, data: a.attributes } } }
+ batch_for_bulk = items.map { |a| { index: { _id: a.id.to_s, data: a.as_indexed_json } } }
74
yield batch_for_bulk
75
items = []
76
end
77
78
79
unless items.empty?
80
81
82
83
0 commit comments