Commit 3f60b7bb authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add elastic utility scripts.

parent 56eac018
{
"script": {
"source": "for (item in ctx._source.access) { if (item.name.it[0] == 'Nel local') { item.name.it = params.name } }",
"lang": "painless",
"params": {
"name": ["Sul posto"]
}
},
"query": {
"term": {
"access.name.it.filter": "Nel local"
}
}
}
curl -X POST -H 'Content-Type: application/json' -d "@query.json" "localhost:8080/documents-v21/_update_by_query"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment