The typical way is to set "index": false for fields you don't want indexed, but they will be stored.
However, you can't do this with a nested object - the purpose of nesting is so that you can search against the sub-documents (the nested objects) 'correctly'. That being said, if you don't want the data indexed/query-able, then just use normal 'objects' rather than nested objects. Then you can use the enabled option to avoid indexing the object.
Edit: properly formatted/indented example code in questions will better enable people to answer.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.