lib/elastics/active_model/attachment.rb in elastics-models-1.3.2 vs lib/elastics/active_model/attachment.rb in elastics-models-1.3.3

- old
+ new

@@ -12,10 +12,10 @@ # the latest attribute. def attribute_attachment(*args) name = args.first.is_a?(Symbol) ? args.shift : :attachment props = {:properties => { 'type' => 'attachment', - 'fields' => { name.to_s => { 'store' => 'yes', 'term_vector' => 'with_positions_offsets' }, + 'fields' => { 'content' => { 'store' => 'yes', 'term_vector' => 'with_positions_offsets' }, 'title' => { 'store' => 'yes' }, 'author' => { 'store' => 'yes' }, 'name' => { 'store' => 'yes' }, 'content_type' => { 'store' => 'yes' }, 'date' => { 'store' => 'yes' },