How should I update the specific field


#1

There is my index document structure:

POST org_3888/org/doctor-1/_update?pretty
{
  "doc": {
    "doctor_gender": "F",
    "doctor_languages": [
      {
        "language": "English"
      },
      {
        "language": "Spanish"
      }
    ]
  }
}

Is there any other way to update language which is "English" as "Chinese"? cause I don't update the whole "doctor_languages" field.


(Simon Willnauer) #2

I am not sure I fully undestand the question but elasticsearch always re-indexes the entire document when you update it even if there is only a single field updates. so I guess the answer is no.