body_health_data_es.txt 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. 创建索引
  2. POST http://172.26.0.112:9200/body_health_data
  3. 给索引加mapping
  4. POST http://172.26.0.112:9200/body_health_data/signs_data/_mapping
  5. {
  6. "signs_data": {
  7. "properties": {
  8. "device_name": {
  9. "type": "string",
  10. "index": "not_analyzed"
  11. },
  12. "del": {
  13. "type": "string",
  14. "index": "not_analyzed"
  15. },
  16. "rid": {
  17. "type": "string",
  18. "index": "not_analyzed"
  19. },
  20. "status": {
  21. "type": "string",
  22. "index": "not_analyzed"
  23. },
  24. "measure_data": {
  25. "properties": {
  26. "type": {
  27. "type": "string",
  28. "index": "not_analyzed"
  29. },
  30. "measure_time": {
  31. "type": "string",
  32. "index": "not_analyzed"
  33. },
  34. "sign_name": {
  35. "type": "string",
  36. "index": "not_analyzed"
  37. },
  38. "sign_value": {
  39. "type": "string",
  40. "index": "not_analyzed"
  41. },
  42. "sign_unit": {
  43. "type": "string",
  44. "index": "not_analyzed"
  45. },
  46. "explain": {
  47. "type": "string",
  48. "index": "not_analyzed"
  49. },
  50. "filepath": {
  51. "type": "string",
  52. "index": "not_analyzed"
  53. },
  54. "reference": {
  55. "type": "string",
  56. "index": "not_analyzed"
  57. }
  58. }
  59. },
  60. "position_data": {
  61. "properties": {
  62. "location": {
  63. "type": "geo_point"
  64. },
  65. "altitude": {
  66. "type": "string",
  67. "index": "not_analyzed"
  68. },
  69. "position": {
  70. "type": "string",
  71. "index": "not_analyzed"
  72. }
  73. }
  74. },
  75. "device_model": {
  76. "type": "string",
  77. "index": "not_analyzed"
  78. },
  79. "ext_code": {
  80. "type": "string",
  81. "index": "not_analyzed"
  82. },
  83. "idcard": {
  84. "type": "string",
  85. "index": "not_analyzed"
  86. },
  87. "idcard_type": {
  88. "type": "string",
  89. "index": "not_analyzed"
  90. },
  91. "sn": {
  92. "type": "string",
  93. "index": "not_analyzed"
  94. },
  95. "usercode": {
  96. "type": "string",
  97. "index": "not_analyzed"
  98. },
  99. "data_source": {
  100. "type": "string",
  101. "index": "not_analyzed"
  102. },
  103. "username": {
  104. "type": "string",
  105. "index": "not_analyzed"
  106. }
  107. }
  108. }
  109. }