Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save k0staa/ab7c18af3b6305748a839a2fa34a6807 to your computer and use it in GitHub Desktop.

Select an option

Save k0staa/ab7c18af3b6305748a839a2fa34a6807 to your computer and use it in GitHub Desktop.
curl -XPOST -H 'Content-Type: application/json' 'http://localhost:9202/some_index/_update_by_query' -d '{
"script" : "ctx._source.remove(\"some_field\")"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment