title: Is it possible to update nested field by query?
body: <p>I am using update by query plugin (<a href="https://github.com/yakaz/elasticsearch-action-updatebyquery/" rel="noreferrer">https://github.com/yakaz/elasticsearch-action-updatebyquery/</a>) to update documents by query.
  In my case, there is nested field in document, the mapping is something like this:</p>
  
  <pre><code>"mappings": {
    "mytype": {
      "properties": {
        "Myfield1": {
          "type": "nested",
          "properties": {
            "field1": {
              "type": "string"
            },
            "field2": {
              "type": "long"
            }
          }
        },
        "Title": {
          "type": "string"
        }
      }
    }
  }
  </code></pre>
  
  <p>Then I want to update the nested field <code>Myfield1</code> by query with following request:</p>
  
  <p>But unfortunately, it does not work.</p>
  
  <pre><code>{
    "query": {
      "match": {
        "Title": "elasticsearch"
      }
    },
    "script": "ctx._source.Myfield1 = [{'nestfield1':'foo blabla...','nestfield2':100},{'nestfield1':'abc...','nestfield2':200}]"
  }
  </code></pre>
  
  <p>Does update by query support nested object?</p>
  
  <p>BTW: any other ways to update document by query? </p>
  
  <p>Is the update by query plugin the only choice?</p>