Skip to content

Instantly share code, notes, and snippets.

@lastday154
Created November 29, 2018 08:04
Show Gist options
  • Save lastday154/28e31065bc44e4ca0458138bb0254878 to your computer and use it in GitHub Desktop.
Save lastday154/28e31065bc44e4ca0458138bb0254878 to your computer and use it in GitHub Desktop.
update elastic search
curl -XPOST 'https://localhost:9200/test/_update_by_query' -H 'Content-Type: application/json' -d '{
    "query" : {
        "match_all" : {}
    },
    "script" : "ctx._source.isActive = 'true'"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment