By using "script": "ctx._source.remove("parent.address")", it's not removing address field.
But when I try like, "script": "ctx._source.remove("parent")", complete parent is getting removed.
Could someone please help on removing field inside a field.
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster 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.