服务包执行日志记录索引.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. 创建索引
  2. POST http://172.19.103.68:9200/base_service_package_log
  3. 查询索引
  4. GET http://172.19.103.68:9200/base_service_package_log/
  5. 给索引加mapping
  6. POST http://172.19.103.68:9200/base_service_package_log/base_service_package_log/_mapping
  7. {
  8. "base_service_package_log": {
  9. "properties": {
  10. "createTime": {
  11. "format": "yyyy-MM-dd HH:mm:ss",
  12. "type": "date"
  13. },
  14. "id": {
  15. "type": "string",
  16. "index": "not_analyzed"
  17. },
  18. "leaderCode": {
  19. "type": "string",
  20. "index": "not_analyzed"
  21. },"sevicePackageId": {
  22. "type": "string",
  23. "index": "not_analyzed"
  24. },"sevicePackageDetailId": {
  25. "type": "string",
  26. "index": "not_analyzed"
  27. },"userCode": {
  28. "type": "string",
  29. "index": "not_analyzed"
  30. },"userName": {
  31. "type": "string",
  32. "index": "not_analyzed"
  33. },"userType": {
  34. "type": "string",
  35. "index": "not_analyzed"
  36. },"relationType": {
  37. "type": "string",
  38. "index": "not_analyzed"
  39. },"relationId": {
  40. "type": "string",
  41. "index": "not_analyzed"
  42. },"message": {
  43. "type": "string",
  44. "index": "not_analyzed"
  45. },"flag": {
  46. "type": "integer"
  47. },"finish": {
  48. "type": "integer"
  49. },"ext": {
  50. "type": "string",
  51. "index": "not_analyzed"
  52. }
  53. }
  54. }
  55. }
  56. 字段说明:
  57. "id": code
  58. "createTime": 时间
  59. "leaderCode": saasid
  60. "sevicePackageId": 服务包id
  61. "sevicePackageDetailId": 服务包明细id
  62. "userCode": 医生或者患者code
  63. "userName": 医生或者患者name
  64. "userType": 1 患者 2医生
  65. "relationType": 关联类型(1健康指导,2健康文章,3代预约)
  66. "relationId": 关联id
  67. "message": 操作说明
  68. "flag": 操作是否成功 1成功 0失败
  69. "finish": 完成项目数
  70. "ext": 扩展字段存json