统计新增索引.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. 创建索引
  2. POST http://172.19.103.68:9200/health_edu_article_patient_test
  3. 查询索引
  4. GET http://172.19.103.68:9200/health_edu_article_patient_test/
  5. 给索引加mapping
  6. POST http://172.19.103.68:9200/health_edu_article_patient_test/health_edu_article_patient_test/_mapping
  7. {
  8. "health_edu_article_patient_test": {
  9. "properties": {
  10. "patient": {
  11. "type": "string",
  12. "index": "not_analyzed"
  13. },
  14. "patientName": {
  15. "type": "string",
  16. "index": "not_analyzed"
  17. },
  18. "sendCode": {
  19. "type": "string",
  20. "index": "not_analyzed"
  21. },
  22. "sendName": {
  23. "type": "string",
  24. "index": "not_analyzed"
  25. },
  26. "sendPic": {
  27. "type": "string",
  28. "index": "not_analyzed"
  29. },
  30. "sendSex": {
  31. "type": "string",
  32. "index": "not_analyzed"
  33. },
  34. "sendLevel": {
  35. "type": "string",
  36. "index": "not_analyzed"
  37. },
  38. "adminTeamCode": {
  39. "type": "integer",
  40. "index": "not_analyzed"
  41. },
  42. "adminTeamName": {
  43. "type": "string",
  44. "index": "not_analyzed"
  45. },
  46. "hospital": {
  47. "type": "string",
  48. "index": "not_analyzed"
  49. },
  50. "hospitalName": {
  51. "type": "string",
  52. "index": "not_analyzed"
  53. },
  54. "town": {
  55. "type": "string",
  56. "index": "not_analyzed"
  57. },
  58. "townName": {
  59. "type": "string",
  60. "index": "not_analyzed"
  61. },
  62. "batchNo": {
  63. "type": "string",
  64. "index": "not_analyzed"
  65. },
  66. "articleId": {
  67. "type": "string",
  68. "index": "not_analyzed"
  69. },
  70. "attachedTitle": {
  71. "type": "string",
  72. "index": "not_analyzed"
  73. },
  74. "attachedPic": {
  75. "type": "string",
  76. "index": "not_analyzed"
  77. },
  78. "attachedContent": {
  79. "type": "string",
  80. "index": "not_analyzed"
  81. },
  82. "attachedMessage": {
  83. "type": "string",
  84. "index": "not_analyzed"
  85. },
  86. "articleType": {
  87. "type": "string",
  88. "index": "not_analyzed"
  89. },
  90. "level1Type": {
  91. "type": "string",
  92. "index": "not_analyzed"
  93. },
  94. "level2Type": {
  95. "type": "string",
  96. "index": "not_analyzed"
  97. },
  98. "level": {
  99. "type": "string",
  100. "index": "not_analyzed"
  101. },
  102. "createTime": {
  103. "type": "date",
  104. "index": "not_analyzed"
  105. }
  106. }
  107. }
  108. }