body_health_data_es.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. "access_token": {
  9. "type": "string",
  10. "index": "not_analyzed"
  11. },
  12. "device_name": {
  13. "type": "string",
  14. "index": "not_analyzed"
  15. },
  16. "data": {
  17. "properties": {
  18. "value1": {
  19. "type": "string",
  20. "index": "not_analyzed"
  21. },
  22. "value2": {
  23. "type": "string",
  24. "index": "not_analyzed"
  25. },
  26. "value3": {
  27. "type": "string",
  28. "index": "not_analyzed"
  29. },
  30. "value4": {
  31. "type": "string",
  32. "index": "not_analyzed"
  33. },
  34. "value5": {
  35. "type": "string",
  36. "index": "not_analyzed"
  37. },
  38. "value6": {
  39. "type": "string",
  40. "index": "not_analyzed"
  41. },
  42. "value7": {
  43. "type": "string",
  44. "index": "not_analyzed"
  45. },
  46. "value8": {
  47. "type": "string",
  48. "index": "not_analyzed"
  49. },
  50. "value9": {
  51. "type": "string",
  52. "index": "not_analyzed"
  53. },
  54. "value10": {
  55. "type": "string",
  56. "index": "not_analyzed"
  57. },
  58. "del": {
  59. "type": "string",
  60. "index": "not_analyzed"
  61. },
  62. "measure_time": {
  63. "type": "string",
  64. "index": "not_analyzed"
  65. },
  66. "rid": {
  67. "type": "string",
  68. "index": "not_analyzed"
  69. },
  70. "type": {
  71. "type": "string",
  72. "index": "not_analyzed"
  73. },
  74. "status": {
  75. "type": "string",
  76. "index": "not_analyzed"
  77. }
  78. }
  79. },
  80. "device_model": {
  81. "type": "string",
  82. "index": "not_analyzed"
  83. },
  84. "ext_code": {
  85. "type": "string",
  86. "index": "not_analyzed"
  87. },
  88. "idcard": {
  89. "type": "string",
  90. "index": "not_analyzed"
  91. },
  92. "sn": {
  93. "type": "string",
  94. "index": "not_analyzed"
  95. },
  96. "usercode": {
  97. "type": "string",
  98. "index": "not_analyzed"
  99. },
  100. "data_source": {
  101. "type": "string",
  102. "index": "not_analyzed"
  103. },
  104. "username": {
  105. "type": "string",
  106. "index": "not_analyzed"
  107. }
  108. }
  109. }
  110. }