创建索引 POST http://172.26.0.112:9200/body_health_data 给索引加mapping POST http://172.26.0.112:9200/body_health_data/signs_data/_mapping { "signs_data": { "properties": { "access_token": { "type": "string", "index": "not_analyzed" }, "device_name": { "type": "string", "index": "not_analyzed" }, "data": { "properties": { "value1": { "type": "string", "index": "not_analyzed" }, "value2": { "type": "string", "index": "not_analyzed" }, "value3": { "type": "string", "index": "not_analyzed" }, "value4": { "type": "string", "index": "not_analyzed" }, "value5": { "type": "string", "index": "not_analyzed" }, "value6": { "type": "string", "index": "not_analyzed" }, "value7": { "type": "string", "index": "not_analyzed" }, "value8": { "type": "string", "index": "not_analyzed" }, "value9": { "type": "string", "index": "not_analyzed" }, "value10": { "type": "string", "index": "not_analyzed" }, "del": { "type": "string", "index": "not_analyzed" }, "measure_time": { "type": "string", "index": "not_analyzed" }, "rid": { "type": "string", "index": "not_analyzed" }, "type": { "type": "string", "index": "not_analyzed" }, "status": { "type": "string", "index": "not_analyzed" } } }, "device_model": { "type": "string", "index": "not_analyzed" }, "ext_code": { "type": "string", "index": "not_analyzed" }, "idcard": { "type": "string", "index": "not_analyzed" }, "sn": { "type": "string", "index": "not_analyzed" }, "usercode": { "type": "string", "index": "not_analyzed" }, "data_source": { "type": "string", "index": "not_analyzed" }, "username": { "type": "string", "index": "not_analyzed" } } } }