随访记录详情新增索引.txt 1019 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. 创建索引
  2. POST http://172.19.103.68:9200/wlyy_followup
  3. 查询索引
  4. GET http://172.19.103.68:9200/wlyy_followup/
  5. 给索引加mapping
  6. POST http://172.19.103.68:9200/wlyy_followup/wlyy_followup_content/_mapping
  7. {
  8. "wlyy_followup_content": {
  9. "properties": {
  10. "followup_id": {
  11. "type": "string",
  12. "index": "not_analyzed"
  13. },
  14. "followup_project": {
  15. "type": "string",
  16. "index": "not_analyzed"
  17. },
  18. "followup_key": {
  19. "type": "string",
  20. "index": "not_analyzed"
  21. },
  22. "followup_value": {
  23. "type": "string",
  24. "index": "not_analyzed"
  25. },
  26. "create_time": {
  27. "type": "string",
  28. "index": "not_analyzed"
  29. }
  30. }
  31. }
  32. }
  33. 增加索引搜索大小
  34. PUT http://172.19.103.68:9200/wlyy_followup/_settings
  35. {
  36. "index": {
  37. "max_result_window": 500000
  38. }
  39. }