reindex
POST _reindex
{
"source": {
"remote": {
"host": "http://127.0.0.1:8080"
},
"index": "xxx"
},
"dest": {
"index": "xxx-2"
}
}
alias
POST /_aliases
{
"actions" : [
{ "add" : { "index" : "test1", "alias" : "alias1" } }
]
}
index
PUT twitter/tweet/1/_create
{
"user" : "kimchy",
"post_date" : "2009-11-15T14:12:12",
"message" : "trying out Elasticsearch"
}
update
POST test/_update/1
{
"doc": {
"user" : "kimchy",
"post_date" : "2009-11-15T14:12:12",
"message" : "trying out Elasticsearch"
}
}