ElasticSearch restful实操 随笔
curl -H "Content-Type: application/json" -XPUT http://172.16.206.114:9200/index-demo/user/1 -d'{"name" : "jack","age": 28}'
curl -H "Content-Type: application/json" -XPUT http://172.16.206.114:9200/index-demo/user/_create -d'{"name" : "jack","age": 28}'
curl -H "Content-Type: application/json" -XPOST http://172.16.206.114:9200/index-demo/user/_create -d'{"name" : "jack","age": 28}'
报错:"reason"=>"Can't get text on a START_OBJECT at 1:178"
filter {
mutate{
remove_field => "host"
}
...
}