平台咨讯操作日志新增索引 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. 创建索引
  2. POST http://172.19.103.68:9200/platform_information_log
  3. 查询索引
  4. GET http://172.19.103.68:9200/platform_information_log/
  5. 设置查询长度
  6. PUT http://172.19.103.68:9200/platform_information_log/_settings
  7. {
  8. "index": {
  9. "max_result_window": 500000
  10. }
  11. }
  12. 给索引加mapping
  13. POST http://172.19.103.68:9200/platform_information_log/platform_information_log/_mapping
  14. {
  15. "platform_information_log": {
  16. "properties": {
  17. "id": {
  18. "type": "string",
  19. "index": "not_analyzed"
  20. },
  21. "informationId": {
  22. "type": "long"
  23. },
  24. "informationTitle": {
  25. "type": "string",
  26. "index": "not_analyzed"
  27. },
  28. "operationType": {
  29. "type": "integer"
  30. },
  31. "openid": {
  32. "type": "string",
  33. "index": "not_analyzed"
  34. },
  35. "doctorCode": {
  36. "type": "string",
  37. "index": "not_analyzed"
  38. },
  39. "doctorName": {
  40. "type": "string",
  41. "index": "not_analyzed"
  42. },
  43. "type": {
  44. "type": "integer"
  45. },
  46. "createTime": {
  47. "format": "strict_date_optional_time||epoch_millis",
  48. "type": "date"
  49. },
  50. "patientLabels": {
  51. "type": "string",
  52. "index": "not_analyzed"
  53. },
  54. "orgName": {
  55. "type": "string",
  56. "index": "not_analyzed"
  57. },
  58. "cityName": {
  59. "type": "string",
  60. "index": "not_analyzed"
  61. },
  62. "townName": {
  63. "type": "string",
  64. "index": "not_analyzed"
  65. }
  66. "platInfoCreateTime": {
  67. "format": "strict_date_optional_time||epoch_millis",
  68. "type": "date"
  69. }
  70. }
  71. }
  72. }