Elasticsearch restful命令指南

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"
  }
}
0 0 投票数
Article Rating
订阅评论
提醒
guest
0 评论
最旧
最新 最多投票
内联反馈
查看所有评论
0
希望看到您的想法,请您发表评论x