Dynamic Mapping for nested content

I am trying to create dynamic mapping for new fields, and nested content. If new fields are string then by default it set index as “analyzed” and after upload the documents. But array of object is create after upload the nested content document. We need to create nested contend ("type": "nested") instead of array of object. Is it possible using dynamic template or not? Please share how to do it?