获取索引对应的 mapping 结构

GET /api/:target/_mapping

请求示例

GET http://localhost:4080/api/myindex/_mapping

将上面的 myindex 换成你自己的索引名称

响应示例

  1. {
  2. "myindex": {
  3. "mappings": {
  4. "properties": {
  5. "_id": {
  6. "type": "keyword",
  7. "index": true,
  8. "store": false,
  9. "sortable": true,
  10. "aggregatable": true,
  11. "highlightable": false
  12. },
  13. "@timestamp": {
  14. "type": "date",
  15. "index": true,
  16. "store": false,
  17. "sortable": true,
  18. "aggregatable": true,
  19. "highlightable": false
  20. },
  21. "Athlete": {
  22. "type": "text",
  23. "index": true,
  24. "store": true,
  25. "sortable": false,
  26. "aggregatable": false,
  27. "highlightable": true
  28. },
  29. "City": {
  30. "type": "text",
  31. "index": true,
  32. "store": true,
  33. "sortable": false,
  34. "aggregatable": false,
  35. "highlightable": true
  36. },
  37. "Country": {
  38. "type": "text",
  39. "index": true,
  40. "store": true,
  41. "sortable": false,
  42. "aggregatable": false,
  43. "highlightable": true
  44. },
  45. "Discipline": {
  46. "type": "text",
  47. "index": true,
  48. "store": true,
  49. "sortable": false,
  50. "aggregatable": false,
  51. "highlightable": true
  52. },
  53. "Event": {
  54. "type": "text",
  55. "index": true,
  56. "store": true,
  57. "sortable": false,
  58. "aggregatable": false,
  59. "highlightable": true
  60. },
  61. "Gender": {
  62. "type": "text",
  63. "index": true,
  64. "store": true,
  65. "sortable": false,
  66. "aggregatable": false,
  67. "highlightable": true
  68. },
  69. "Medal": {
  70. "type": "text",
  71. "index": true,
  72. "store": true,
  73. "sortable": false,
  74. "aggregatable": false,
  75. "highlightable": true
  76. },
  77. "Season": {
  78. "type": "text",
  79. "index": true,
  80. "store": true,
  81. "sortable": false,
  82. "aggregatable": false,
  83. "highlightable": true
  84. },
  85. "Sport": {
  86. "type": "text",
  87. "index": true,
  88. "store": true,
  89. "sortable": false,
  90. "aggregatable": false,
  91. "highlightable": true
  92. },
  93. "Year": {
  94. "type": "numeric",
  95. "index": true,
  96. "store": false,
  97. "sortable": true,
  98. "aggregatable": true,
  99. "highlightable": false
  100. }
  101. }
  102. }
  103. }
  104. }