创建索引 POST http://172.19.103.68:9200/wlyy_followup 查询索引 GET http://172.19.103.68:9200/wlyy_followup/ 给索引加mapping POST http://172.19.103.68:9200/wlyy_followup/wlyy_followup_content/_mapping { "wlyy_followup_content": { "properties": { "followup_id": { "type": "string", "index": "not_analyzed" }, "followup_project": { "type": "string", "index": "not_analyzed" }, "create_time": { "type": "string", "index": "not_analyzed" }, "NO_SYMPTOM": { "type": "string", "index": "not_analyzed" }, "HEADACHE": { "type": "string", "index": "not_analyzed" }, "NAUSEA": { "type": "string", "index": "not_analyzed" }, "VERTIGO_TINNITUS": { "type": "string", "index": "not_analyzed" }, "DIFFICULTY_BREATHING": { "type": "string", "index": "not_analyzed" }, "PALPITATIONS": { "type": "string", "index": "not_analyzed" }, "EPISTAXIS_BLEEDING": { "type": "string", "index": "not_analyzed" }, "LIMBS_NUMB": { "type": "string", "index": "not_analyzed" }, "EXTREMITY_EDEMA": { "type": "string", "index": "not_analyzed" }, "SYMPTOM_OTHER": { "type": "string", "index": "not_analyzed" }, "POLYDIPSIA": { "type": "string", "index": "not_analyzed" }, "MORE_FOOD": { "type": "string", "index": "not_analyzed" }, "MORE_URINE": { "type": "string", "index": "not_analyzed" }, "BLURRED_VISION": { "type": "string", "index": "not_analyzed" }, "INFECTION": { "type": "string", "index": "not_analyzed" }, "NUMB_HANDS": { "type": "string", "index": "not_analyzed" }, "WEIGHT_LOSS": { "type": "string", "index": "not_analyzed" }, "HYPOG_REACT_CODE": { "type": "string", "index": "not_analyzed" }, "HEIGHT": { "type": "string", "index": "not_analyzed" }, "HEIGHT_EXP": { "type": "string", "index": "not_analyzed" }, "WEIGHT": { "type": "string", "index": "not_analyzed" }, "WEIGHT_EXP": { "type": "string", "index": "not_analyzed" }, "BP_D": { "type": "string", "index": "not_analyzed" }, "BP_U": { "type": "string", "index": "not_analyzed" }, "BS_FPG": { "type": "string", "index": "not_analyzed" }, "NO_BS_FPG": { "type": "string", "index": "not_analyzed" }, "RANDOM_BLOOD_SUGAR": { "type": "string", "index": "not_analyzed" }, "BMI": { "type": "string", "index": "not_analyzed" }, "BMI_EXP": { "type": "string", "index": "not_analyzed" }, "OTHER_POSITIVE_SIGNS": { "type": "string", "index": "not_analyzed" }, "POFDA_MARK": { "type": "string", "index": "not_analyzed" }, "HEART_RATE": { "type": "string", "index": "not_analyzed" }, "GHB": { "type": "string", "index": "not_analyzed" }, "RENAL_FUNCTION_CREATININE": { "type": "string", "index": "not_analyzed" }, "RENAL_FUNCTION_BUN": { "type": "string", "index": "not_analyzed" }, "MICROALBUMINURIA": { "type": "string", "index": "not_analyzed" }, "EXAM_DATE": { "type": "string", "index": "not_analyzed" }, "BLOOD_FAT_TRIGLYCERIDE": { "type": "string", "index": "not_analyzed" }, "BLOOD_FAT_TC": { "type": "string", "index": "not_analyzed" }, "BLOOD_FAT_LDLC": { "type": "string", "index": "not_analyzed" }, "DAILY_SMOKING": { "type": "string", "index": "not_analyzed" }, "SOMKING_EXP": { "type": "string", "index": "not_analyzed" }, "DAILY_DRINKING": { "type": "string", "index": "not_analyzed" }, "DRINK_EXP": { "type": "string", "index": "not_analyzed" }, "EXERCISE_FREQ_CODE": { "type": "string", "index": "not_analyzed" }, "EXERCISE_FREQ_CODE_EXP": { "type": "string", "index": "not_analyzed" }, "EXERCISE_DURATION_MINS": { "type": "string", "index": "not_analyzed" }, "EXERCISE_DURATION_MINS_EXP": { "type": "string", "index": "not_analyzed" }, "SALT_TAKEN_LEVEL_CODE": { "type": "string", "index": "not_analyzed" }, "SALT_TAKEN_LEVEL_EXP": { "type": "string", "index": "not_analyzed" }, "PSY_ADJUST_RESULT_CODE": { "type": "string", "index": "not_analyzed" }, "COMPLIANCE_RESULT_CODE": { "type": "string", "index": "not_analyzed" }, "DAILY_STAPLE": { "type": "string", "index": "not_analyzed" }, "HYP_FOLLOWUP_TYPE_CODE": { "type": "string", "index": "not_analyzed" }, "HYP_COMPLICATION_DETAIL": { "type": "string", "index": "not_analyzed" }, "DIA_FOLLOWUP_TYPE_CODE": { "type": "string", "index": "not_analyzed" }, "DIA_COMPLICATION_DETAIL": { "type": "string", "index": "not_analyzed" }, "DRUG_COMPLIANCE_CODE": { "type": "string", "index": "not_analyzed" }, "CONTROL_DATE": { "type": "string", "index": "not_analyzed" }, "CONTROL_CONSTITUTOR": { "type": "string", "index": "not_analyzed" }, "CONTROL_CONSTITUTOR_DOCTORCODE": { "type": "string", "index": "not_analyzed" }, "CONTROL_CONSTITUTOR_JWDOCTORCODE": { "type": "string", "index": "not_analyzed" }, "CONTROL_BP_U": { "type": "string", "index": "not_analyzed" }, "CONTROL_BP_D": { "type": "string", "index": "not_analyzed" }, "CONTROL_BS_FPG": { "type": "string", "index": "not_analyzed" }, "CONTROL_NO_BS_FPG": { "type": "string", "index": "not_analyzed" }, "CONTROL_GHB": { "type": "string", "index": "not_analyzed" }, "CONTROL_TRIGLYCERIDE": { "type": "string", "index": "not_analyzed" }, "CONTROL_TOTAL_CHOLESTEROL": { "type": "string", "index": "not_analyzed" }, "CONTROL_LDL": { "type": "string", "index": "not_analyzed" }, "CONTROL_WEIGHT": { "type": "string", "index": "not_analyzed" }, "CONTROL_EXERCISE_FREQ_CODE": { "type": "string", "index": "not_analyzed" }, "CONTROL_EXERCISE_DURATION_MINS": { "type": "string", "index": "not_analyzed" }, "ARCHIVE_TIME": { "type": "string", "index": "not_analyzed" }, "ARCHIVE_OPERATOR_NAME": { "type": "string", "index": "not_analyzed" }, "HEALTH_EDUCATE": { "type": "string", "index": "not_analyzed" }, "EDUCATE_CONTENT": { "type": "string", "index": "not_analyzed" }, "DRUG_ADVERSE_MARK": { "type": "string", "index": "not_analyzed" }, "ADR_REMARK": { "type": "string", "index": "not_analyzed" }, "TRANSFER_RESON": { "type": "string", "index": "not_analyzed" }, "TRANSFER_ORG_DEPT": { "type": "string", "index": "not_analyzed" }, "REFUSE_REFERRAL": { "type": "string", "index": "not_analyzed" }, "REFUSE_REFERRAL_WHY": { "type": "string", "index": "not_analyzed" }, "ARCHIVE_ID": { "type": "string", "index": "not_analyzed" }, "CHECK_FEE_TYPE": { "type": "string", "index": "not_analyzed" }, "FAMILY_FOLLOWUP_ID": { "type": "string", "index": "not_analyzed" } } } } 增加索引搜索大小 PUT http://172.19.103.68:9200/wlyy_followup/_settings { "index": { "max_result_window": 500000 } } 续方完成之后的随访保存,BLOOD_SUGAR、BLOOD_SUGAR_TYPE POST http://172.26.0.112:9200/wlyy_followup/wlyy_followup_content/_mapping { "wlyy_followup_content": { "properties": { "BLOOD_SUGAR": { "type": "string", "index": "not_analyzed" }, "BLOOD_SUGAR_TYPE": { "type": "string", "index": "not_analyzed" } } } }