即使是不成熟的尝试,也胜于胎死腹中的策略。

geo_shape字段定义

Elasticsearch | 作者 bc123 | 发布于2018年08月17日 | 阅读数:5702

创建索引定义一个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}
已邀请:

bc123

赞同来自:

es2.4.6和es5.3.0均进行过验证, 抛出的异常信息相同,即"Mapping definition for [geom] has unsupported parameters: [ignore_malformed : true]"

要回复问题请先登录注册