创建索引定义一个geo_shape类型的字段,希望ES能够忽略在ES看来的非法空间数据,结果提示不支持ignore_malformed参数
{
"properties": {
"OID": {
"type": "long"
},
"geom": {
"type": "geo_shape",
"ignore_malformed": true
},
"AREA": {
"type": "double"
},
"PERIMETER": {
"type": "double"
},
"ESRI_NUM": {
"type": "long"
},
"ESRI_ID": {
"type": "long"
},
"ADCODE93": {
"type": "long"
},
"NAME": {
"type": "string"
},
"X": {
"type": "integer"
},
"Y": {
"type": "integer"
},
"TEST": {
"type": "long"
},
"ENTIID": {
"type": "long"
}
}
}
{"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [geom] has unsupported parameters: [ignore_malformed : true]"
}
],
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [geom] has unsupported parameters: [ignore_malformed : true]"
},
"status": 400}
{
"properties": {
"OID": {
"type": "long"
},
"geom": {
"type": "geo_shape",
"ignore_malformed": true
},
"AREA": {
"type": "double"
},
"PERIMETER": {
"type": "double"
},
"ESRI_NUM": {
"type": "long"
},
"ESRI_ID": {
"type": "long"
},
"ADCODE93": {
"type": "long"
},
"NAME": {
"type": "string"
},
"X": {
"type": "integer"
},
"Y": {
"type": "integer"
},
"TEST": {
"type": "long"
},
"ENTIID": {
"type": "long"
}
}
}
{"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [geom] has unsupported parameters: [ignore_malformed : true]"
}
],
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [geom] has unsupported parameters: [ignore_malformed : true]"
},
"status": 400}
1 个回复
bc123
赞同来自: