Skip to content

Instantly share code, notes, and snippets.

@Janderson
Created May 30, 2019 16:16
Show Gist options
  • Select an option

  • Save Janderson/fc987ec54ff0100f89ca4d00158681f6 to your computer and use it in GitHub Desktop.

Select an option

Save Janderson/fc987ec54ff0100f89ca4d00158681f6 to your computer and use it in GitHub Desktop.
remove a field elasticsearch
GET /genesis_profit/_update_by_query
{
"script": "ctx._source.remove('GapPercentualDiario')",
"query": {
"bool": {
"must": [
{
"exists": {
"field": "GapPercentualDiario"
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment