How can i update all the values in specific field using update_by_query?

    POST /my_metric/_update_by_query
    "query": {
        "bool": {
            "must": [
                    "term": {"timestamp": "1324987657365"}
  "script": "ctx._source.timestamp = '1573775999999'"

this query update only 1324987657365 value. i need to update all the values in timestamp field. How can i do that


if you want to update all docs in the index, you can simply omit the "query" part. This will make Elasticsearch update all docs.

@HenningAndersen Thank you very much!