Elasticsearch映射问题错误
问题描述:
答
更新您的vuln_ip.json
这样:
{
"mappings": {
"vulnerabilities": {
"properties": {
"address": {
"type": "ip"
},
"cpes": {
"type": "text"
},
"port": {
"type": "nested",
"properties": {
"portid": {
"type": "integer"
},
"protocol": {
"type": "text"
},
"service": {
"type": "nested",
"properties": {
"extrainfo": {
"type": "text"
},
"name": {
"type": "text"
},
"ostype": {
"type": "text"
},
"product": {
"type": "text"
},
"version": {
"type": "text"
}
}
},
"state": {
"type": "text"
}
}
},
"score": {
"type": "text"
}
}
}
}
}
修改您的curl命令这个curl -XPUT 'localhost:9200/vulnerable/' -d @vuln_ip.json
。
这是一个类似于https://*.com/questions/39288997/elasticsearch-root-mapping-definition-has-unsupported-parameters-index-not-a的问题吗? –