PUT /customer/_doc/1
{
"name": "John Doe"
}
GET /customer/_doc/1
批处理文档,建立索引
wget "http://github.com/elastic/elasticsearch/blob/master/docs/src/test/resources/accounts.json?raw=true"
curl -H "Content-Type: application/json" -XPOST "localhost:9200/bank/_bulk?pretty&refresh" --data-binary "@accounts.json"
GET /_cat/indices?v
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open bank OzbbV0o2SySxOpp_bvjF7A 1 1 1000 0 924.8kb 462.4kb
green open .kibana_task_manager_1 5F536zhkQPCRqwVvgabgaw 1 1 2 1 95.3kb 51.6kb
green open .apm-agent-configuration jKGK8Oe7TOS-QjUrhpwmGA 1 1 0 0 566b 283b
green open .kibana_1 i_n9c2m9SfGsRcZsG35XMQ 1 1 6 4 65.9kb 17.1kb
green open customer hqgmxIFRT2qZsUaOXbsaBQ 1 1 1 0 7kb 3.5kb