This topic describes how to use Alibaba Cloud Elasticsearch (ES) to create a document.

Use the Kibana console to access Alibaba Cloud Elasticsearch, and send the following request to create a document:
PUT /my_index/my_type/1? pretty
{
  "title": "One", 
  "tags": ["ruby"],
  "post_date":"2009-11-15T13:00:00"
}
PUT /my_index/my_type/2? pretty
{
  "title": "Two", 
  "tags": ["ruby"],
  "post_date":"2009-11-15T14:00:00"
}
PUT /my_index/my_type/3? pretty
{
  "title": "Three", 
  "tags": ["ruby"],
  "post_date":"2009-11-15T15:00:00"
}
If the request is successful, the following result is returned:
{
  "_index" : "my_index",
  "_type" : "my_type",
  "_id" : "1",
  "_version" : 1,
  "result" : "created",
  "_shards" : {
    "total" : 2,
    "successful" : 2,
    "failed" : 0
  },
  "_seq_no" : 0,
  "_primary_term" : 1
}
{
  "_index" : "my_index",
  "_type" : "my_type",
  "_id" : "2",
  "_version" : 1,
  "result" : "created",
  "_shards" : {
    "total" : 2,
    "successful" : 2,
    "failed" : 0
  },
  "_seq_no" : 0,
  "_primary_term" : 1
}
{
  "_index" : "my_index",
  "_type" : "my_type",
  "_id" : "3",
  "_version" : 1,
  "result" : "created",
  "_shards" : {
    "total" : 2,
    "successful" : 2,
    "failed" : 0
  },
  "_seq_no" : 0,
  "_primary_term" : 1
}