How to update nested object in elasticsearch?

This is my output:
{
"_index": "dealytics2",
"_type": "deal",
"_id": "2398860020",
"_version": 3,
"found": true,
"_source": {
"acquiror_ultimate_parent_name": "Dart Container Corp",
"acq_technique": "Divestiture",
"target_mid_industry": "Containers & Packaging",
"target_primary_naic": "326122",
"rank_value": "1015.0",
"advisors": [
{
"master_deal_no": 2398860020,
"client": "Dart Container Corp.",
"role": "Partner",
"advisor": "Larry Nettles",
"advisor_type": "Buyer lawyers",
"bank": "Vinson & Elkins LLP"
},
{
"master_deal_no": 2398860020,
"client": "Dart Container Corp.",
"role": "Partner",
"advisor": "Peter Mims",
"advisor_type": "Buyer lawyers",
"bank": "Vinson & Elkins LLP"
},
{
"master_deal_no": 2398860020,
"client": "Dart Container Corp.",
"role": "Counsel",
"advisor": "Lila Marsh",
"advisor_type": "Buyer lawyers",
"bank": "Vinson & Elkins LLP"
},

                  {
                    "master_deal_no": 2398860020,
                    "client": "Dart Container Corp.",
                    "role": "Corporate partner",
                    "advisor": "Chris  Schmitt",
                    "advisor_type": "Buyer lawyers",
                    "bank": "Vinson & Elkins LLP"
                  },
                  {
                    "master_deal_no": 2398860020,
                    "client": "Vestar Capital Partners Inc.",
                    "role": "M&A partner",
                    "advisor": "Peter  Gordon",
                    "advisor_type": "Seller lawyers",
                    "bank": "Simpson Thacher & Bartlett LLP"
                  }
                 
                ],
                "acquiror_finanial_advisor": "Ernst & Young LLP",
                "target_financial_advisor": [
                  "Goldman Sachs & Co",
                  "Evercore Partners"
                ],
                "rumor_flag": "False",
                "seqno": [
                  "1",
                  "2",
                  "3"
                ],
                "exchange_offer_indicator": "False",
                "acquiror_ultimate_parent_nation_code": "US",
                "target_nation_code": "US",
                "target_ultimate_parent_nation_code": "US",
                "acquiror_primary_sic": "3089",
                "deal_value": "1015.0",
                "acquiror_public_status": "Priv.",
                "target_ultimate_parent_nation": "United States",
                "target_nation": "United States",
                "consideration_offered": [
                  "Cash",
                  "Debt"
                ],
                "percent_shares_acquired": "100.0",
                "percent_shares_sought": "100.0",
                "acquiror_macro_industry": "Materials",
                "open_market_purchase_indicator": "False",
                "news_date_value": "2012-03-21",
                "financial_sponsor_name": [
                  "Vestar Capital Partners Inc",
                  "Vestar Capital Partners Inc",
                  "Vestar Capital Partners Inc"
                ],
                "target_ultimate_parent_name": "Vestar Capital Partners Inc",
                "original_date_announced": "2012-03-21",
                "acquiror_ultimate_parent_nation": "United States",
                "acquiror_mid_industry": "Other Materials",
                "consideration_structure": "OTHER",
                "financial_sponsor_role": [
                  "FST",
                  "TIP",
                  "TUP"
                ],
                "date_created_stamp": "2012-03-21"
              }
            }

My question is I need to update the above document by adding field to the advisors nested obejct.

Like
advisors:
[
{
"rank_value":1234
}
]
How to update please help

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.