平台咨讯推送记录新增索引 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. 创建索引
  2. POST http://172.19.103.68:9200/platform_information_push_record
  3. 查询索引
  4. GET http://172.19.103.68:9200/platform_information_push_record/
  5. 设置查询长度
  6. PUT settings http://172.19.103.68:9200/platform_information_push_record/_settings
  7. {
  8. "index": {
  9. "max_result_window": 500000
  10. }
  11. }
  12. 给索引加mapping
  13. POST http://172.19.103.68:9200/platform_information_push_record/platform_information_push_record/_mapping
  14. {
  15. "platform_information_push_record": {
  16. "properties": {
  17. "id": {
  18. "type": "string",
  19. "index": "not_analyzed"
  20. },
  21. "batchNo": {
  22. "type": "string",
  23. "index": "not_analyzed"
  24. },
  25. "type": {
  26. "type": "integer"
  27. "index": "not_analyzed"
  28. },
  29. "receiverCode": {
  30. "type": "string",
  31. "index": "not_analyzed"
  32. },
  33. "receiverName": {
  34. "type": "string",
  35. "index": "not_analyzed"
  36. },
  37. "informationId": {
  38. "type": "long",
  39. "index": "not_analyzed"
  40. },
  41. "informationTitle": {
  42. "type": "string",
  43. "index": "not_analyzed"
  44. },
  45. "informationContent": {
  46. "type": "string",
  47. "index": "not_analyzed"
  48. },
  49. "status": {
  50. "type": "integer"
  51. },
  52. "createTime": {
  53. "format": "strict_date_optional_time||epoch_millis",
  54. "type": "date"
  55. }
  56. }
  57. }
  58. }