创建索引 POST http://172.19.103.68:9200/platform_information_log 查询索引 GET http://172.19.103.68:9200/platform_information_log/ 设置查询长度 PUT http://172.19.103.68:9200/platform_information_log/_settings { "index": { "max_result_window": 500000 } } 给索引加mapping POST http://172.19.103.68:9200/platform_information_log/platform_information_log/_mapping { "platform_information_log": { "properties": { "id": { "type": "string", "index": "not_analyzed" }, "informationId": { "type": "long" }, "informationTitle": { "type": "string", "index": "not_analyzed" }, "operationType": { "type": "integer" }, "openid": { "type": "string", "index": "not_analyzed" }, "doctorCode": { "type": "string", "index": "not_analyzed" }, "doctorName": { "type": "string", "index": "not_analyzed" }, "type": { "type": "integer" }, "createTime": { "format": "strict_date_optional_time||epoch_millis", "type": "date" }, "patientLabels": { "type": "string", "index": "not_analyzed" }, "orgName": { "type": "string", "index": "not_analyzed" }, "cityName": { "type": "string", "index": "not_analyzed" }, "townName": { "type": "string", "index": "not_analyzed" } "platInfoCreateTime": { "format": "strict_date_optional_time||epoch_millis", "type": "date" } } } }