统计新增索引.txt 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. "doctor": {
  19. "type": "string",
  20. "index": "not_analyzed"
  21. },
  22. "doctorName": {
  23. "type": "string",
  24. "index": "not_analyzed"
  25. },
  26. "adminTeamCode": {
  27. "type": "integer",
  28. "index": "not_analyzed"
  29. },
  30. "adminTeamName": {
  31. "type": "string",
  32. "index": "not_analyzed"
  33. },
  34. "hospital": {
  35. "type": "string",
  36. "index": "not_analyzed"
  37. },
  38. "hospitalName": {
  39. "type": "string",
  40. "index": "not_analyzed"
  41. },
  42. "town": {
  43. "type": "string",
  44. "index": "not_analyzed"
  45. },
  46. "townName": {
  47. "type": "string",
  48. "index": "not_analyzed"
  49. },
  50. "batchNo": {
  51. "type": "string",
  52. "index": "not_analyzed"
  53. },
  54. "articleId": {
  55. "type": "string",
  56. "index": "not_analyzed"
  57. },
  58. "attachedTitle": {
  59. "type": "string",
  60. "index": "not_analyzed"
  61. },
  62. "attachedPic": {
  63. "type": "string",
  64. "index": "not_analyzed"
  65. },
  66. "attachedContent": {
  67. "type": "string",
  68. "index": "not_analyzed"
  69. },
  70. "attachedMessage": {
  71. "type": "string",
  72. "index": "not_analyzed"
  73. },
  74. "articleType": {
  75. "type": "string",
  76. "index": "not_analyzed"
  77. },
  78. "level1Type": {
  79. "type": "string",
  80. "index": "not_analyzed"
  81. },
  82. "level2Type": {
  83. "type": "string",
  84. "index": "not_analyzed"
  85. },
  86. "level": {
  87. "type": "string",
  88. "index": "not_analyzed"
  89. },
  90. "createTime": {
  91. "type": "date",
  92. "index": "not_analyzed"
  93. }
  94. }
  95. }
  96. }