Vin*_*Qin 5 elasticsearch kibana
我是elasticsearch的新手。我使用这样的代码创建一个映射:
PUT /my-demo1
{
"mappings": {
"properties": {
"dsu_sn": {
"type": "keyword"
},
"iot_id": {
"type": "keyword"
},
"test_suite_id": {
"type": "text"
},
"error_code": {
"type": "long"
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
mapper [iot_id] cannot be changed from type [keyword] to [text]
当我使用这样的代码索引文档时ES 响应:
POST /my-demo1/1
{
"dsu_sn": "ssl123321",
"iot_id": "550068573720395776",
"test_suite_id": "com.example.test.wifi",
"error_code": 2
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
9208 次 |
最近记录: |