POST twitter/_update_by_query
{
"script": {
"source": "ctx._source.likes++",
"lang": "painless"
},
"query": {
"term": {
"user": "kimchy"
}
}
}
Adding/Removing aliases
POST /_aliases
{
"actions" : [
{
"add/remove" : {
"index" : "<index_name>",
"alias" : "<alias_name>",
"is_write_index" : true
}
}
]
}
No comments:
Post a Comment