PUT http://ip:port/esindex/_mapping
{ "properties": { "COMPSCORELIST": { "type": "nested", "properties": { "COMPNAME": { "type": "keyword" }, "SCORE": { "type": "float" } } } } }
添加后的mappings