Doc_as_upsert but don't deleted nested

I am using the doc_as_upsert to update my document if it already exists, for example

 {
   "doc": {
     "apple": "new_name",
     "test_list": [
       {
         "value": "first value group 1",
         "value_set": {
           "name": "set 1"
         }
       },
       {
         "value": "first value group 2",
         "value_set": {
           "name": "set 2"
         }
       }
     ]
   },
   "doc_as_upsert": true
 }

That works, now if I send

 {
   "doc": {
     "apple": "new_name",
     "test_list": [
       {
         "value": "first value group 1",
         "value_set": {
           "name": "set 1"
         }
       },
       {
         "value": "first value group 2"
        }
     ]
   },
   "doc_as_upsert": true
 }

It removes the second value sent from the record (I sent nothing). It is possible to keep that intact in the index?

Thanks

Grant

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