lib/elastics/utility_methods.rb in elastics-client-1.1.9 vs lib/elastics/utility_methods.rb in elastics-client-1.1.10
- old
+ new
@@ -103,9 +103,10 @@
end
def bulk_string_from_elastics(document, options)
elastics = document.elastics
return '' unless document.elastics_indexable?
+ options[:action] ||= document.elastics_action
meta = { '_index' => elastics.index,
'_type' => elastics.type,
'_id' => elastics.id }
meta['_parent'] = elastics.parent if elastics.parent
meta['_routing'] = elastics.routing if elastics.routing