在 curl 后加入 -H "Content-Type: application/json;charset=UTF-8"
在postman heder 头中,
创建索引库:
1)使用postman或curl这样的工具创建:
put http://localhost:9200/索引库名称
{
"settings":{
"index":{
"number_of_shards":1,
"number_of_replicas":0
}
}
}