如果我做的:试图elasticsearch卷曲测试ElastiSearch集群failling
卷曲-X POST http://elasticsearch:9200/myProject/customer/59d56aadaedef10001c4d023/_create -d @ es.json
对我的弹性集群Kubernetes
ES .json
{
"id": "59d56aadaedef10001c4d023",
"displayId": "A-18",
"agentId": "59d291aee1e6480020b5f042",
"firstName": "Dieter",
"lastName": "adsadsdsa",
"birthday": "1990-01-01T00:00:00.000Z",
"email": "[email protected]",
"phone": "0912312312",
"zipCode": "123412",
"city": "Hannover",
"street": "undefined"
}, query: {}
我得到:
{ "error" : "MapperParsingException[failed to parse [id]]; nested: NumberFormatException[For input string: \"59d56aadaedef10001c4d023\"]; ", "status" : 400 }
知不知道林做错了什么?
原来我不喜欢弹性的ID b eing发送到身体?正确? – nottinhill
你可以显示你从'curl -XGET http:// elasticsearch:9200/myProject/customer/_mapping'得到的映射吗? – Val
我会猜测你已经将id字段映射到数字类型。就像@Val说的那样,我们可以肯定地知道映射查询的结果。 – Miek