ES索引创建命令 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "settings": {
  3. "refresh_interval": "-1"
  4. },
  5. "mappings": {
  6. "properties": {
  7. "ctime": {
  8. "type": "date"
  9. },
  10. "location": {
  11. "type": "text"
  12. },
  13. "dataObjectId": {
  14. "type": "text",
  15. "fields": {
  16. "keyword": {
  17. "type": "keyword",
  18. "ignore_above": 256
  19. }
  20. }
  21. },
  22. "logContent": {
  23. "type": "text"
  24. },
  25. "success": {
  26. "type": "text"
  27. },
  28. "serviceId": {
  29. "type": "text"
  30. },
  31. "workId": {
  32. "type": "text"
  33. },
  34. "event": {
  35. "type": "text"
  36. },
  37. "outDataContent": {
  38. "type": "text"
  39. },
  40. "iNDataContent": {
  41. "type": "text"
  42. },
  43. "calculationLocation": {
  44. "type": "text"
  45. },
  46. "dataobjectid": {
  47. "type": "keyword"
  48. }
  49. }
  50. }
  51. }