0
推荐
8231
阅读
elasticsearch 索引创建、类型创建、文档操作
创建索引vw_common_prod_v1curl -XPUT 'http://hd-1:9200/vw_common_prod_v1/' -d '{
"settings":{
"index":{
"number_of_shards":1,
"number_of_replicas":0
}
}...
0
推荐
2036
阅读
curl 写入含中文的文档到elasticsearch
curl 写入含中文的文档到elasticsearch时,指定UTF-8编码curl -XPOST -H "'Content-type':'application/x-www-form-urlencoded', 'charset':'utf-8', 'Accept': 'text/plain'" ip:9200/sale/prod/2 -d'
{"PURCHASER":"美国留给伊拉克的是个烂摊子吗"}
'