Skip to content

Instantly share code, notes, and snippets.

@sjose1x
sjose1x / scripts
Last active January 30, 2021 23:58
Elasticsearch update fields using groovy scripts
ORIGINAL DOC
-------------
{
"counter": 61,
"tags": ["red", "blue"]
}
Updating Single Field if its not ther in the array
-------------------
{