label_es_sql 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. -- 新增居民标签索引映射
  2. PUT http://172.19.103.45:9200/figure_label_index
  3. {
  4. "mappings": {
  5. "figure_label_type": {
  6. "properties": {
  7. "createTime": {
  8. "type": "date",
  9. "format": "yyyy-MM-dd HH:mm:ss"
  10. },
  11. "currentActive": {
  12. "type": "boolean"
  13. },
  14. "id": {
  15. "type": "string"
  16. },
  17. "idcard": {
  18. "type": "string"
  19. },
  20. "labeName": {
  21. "type": "string"
  22. },
  23. "labeValue": {
  24. "type": "string"
  25. },
  26. "labelCode": {
  27. "type": "string"
  28. },
  29. "labelName": {
  30. "type": "string"
  31. },
  32. "labelType": {
  33. "type": "string"
  34. },
  35. "labelValue": {
  36. "type": "string"
  37. },
  38. "modelId": {
  39. "type": "string"
  40. },
  41. "query": {
  42. "properties": {
  43. "match_all": {
  44. "type": "object"
  45. }
  46. }
  47. },
  48. "source": {
  49. "type": "string"
  50. },
  51. "sourceTime": {
  52. "type": "string"
  53. }
  54. }
  55. }
  56. }
  57. }
  58. -- 给索引建立别名
  59. PUT http://172.19.103.45:9200/figure_label_index/figure_label_index_a