版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/keyuquan/article/details/82019628
1、手动指定document id
PUT /test_index/test_type/2
{
"test_content": "my test"
}
2、自动生成document id
POST /test_index/test_type
{
"test_content": "my test"
}