统计新增索引.txt 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. 创建索引
  2. POST http://172.19.103.68:9200/hlw_quota_prod
  3. 查询索引
  4. GET http://172.19.103.68:9200/hlw_quota_prod/
  5. 给索引加mapping
  6. POST http://172.19.103.68:9200/hlw_quota_prod/hlw_quota_prod/_mapping
  7. {
  8. "hlw_quota_prod": {
  9. "properties": {
  10. "deptName": {
  11. "type": "string",
  12. "index": "not_analyzed"
  13. },
  14. "city": {
  15. "type": "string",
  16. "index": "not_analyzed"
  17. },
  18. "slaveKey4Name": {
  19. "type": "string",
  20. "index": "not_analyzed"
  21. },
  22. "doctorName": {
  23. "type": "string",
  24. "index": "not_analyzed"
  25. },
  26. "cityName": {
  27. "type": "string",
  28. "index": "not_analyzed"
  29. },
  30. "areaLevel": {
  31. "type": "string",
  32. "index": "not_analyzed"
  33. },
  34. "hospital": {
  35. "type": "string",
  36. "index": "not_analyzed"
  37. },
  38. "slaveKey3Name": {
  39. "type": "string",
  40. "index": "not_analyzed"
  41. },
  42. "quotaDate": {
  43. "type": "date"
  44. },
  45. "quotaCode": {
  46. "type": "string",
  47. "index": "not_analyzed"
  48. },
  49. "result2": {
  50. "type": "double"
  51. },
  52. "result1": {
  53. "type": "double"
  54. },
  55. "slaveKey1": {
  56. "type": "string",
  57. "index": "not_analyzed"
  58. },
  59. "slaveKey2": {
  60. "type": "string",
  61. "index": "not_analyzed"
  62. },
  63. "townName": {
  64. "type": "string",
  65. "index": "not_analyzed"
  66. },
  67. "slaveKey3": {
  68. "type": "string",
  69. "index": "not_analyzed"
  70. },
  71. "slaveKey4": {
  72. "type": "string",
  73. "index": "not_analyzed"
  74. },
  75. "town": {
  76. "type": "string",
  77. "index": "not_analyzed"
  78. },
  79. "slaveKey2Name": {
  80. "type": "string",
  81. "index": "not_analyzed"
  82. },
  83. "timeLevel": {
  84. "type": "string",
  85. "index": "not_analyzed"
  86. },
  87. "dept": {
  88. "type": "string",
  89. "index": "not_analyzed"
  90. },
  91. "hospitalName": {
  92. "type": "string",
  93. "index": "not_analyzed"
  94. },
  95. "doctor": {
  96. "type": "string",
  97. "index": "not_analyzed"
  98. },
  99. "createTime": {
  100. "type": "date"
  101. },
  102. "slaveKey1Name": {
  103. "type": "string",
  104. "index": "not_analyzed"
  105. }
  106. }
  107. }
  108. }
  109. 增加索引搜索大小
  110. PUT http://172.19.103.68:9200/hlw_quota_prod/_settings
  111. {
  112. "index": {
  113. "max_result_window": 500000
  114. }
  115. }