命令建索引.txt 1.8 KB

1234567891011121314151617181920
  1. curl -XPUT http://10.18.43.40:9200/hlw_quota_prod
  2. curl -XPUT http://10.18.43.40:9200/hlw_quota_prod/_mapping/hlw_quota_prod?pretty -d '{"properties": {
  3. "deptName": {"type": "string", "index": "not_analyzed"}, "city": {"type": "string", "index": "not_analyzed"}, "slaveKey4Name": {"type": "string", "index": "not_analyzed"}, "doctorName": {"type": "string", "index": "not_analyzed"}, "cityName": {"type": "string", "index": "not_analyzed"},
  4. "areaLevel": {"type": "string", "index": "not_analyzed"}, "hospital": {"type": "string", "index": "not_analyzed"}, "slaveKey3Name": { "type": "string", "index": "not_analyzed"}, "quotaDate": {
  5. "type": "date"}, "quotaCode": { "type": "string", "index": "not_analyzed"}, "result2": { "type": "double"}, "result1": { "type": "double"}, "slaveKey1": { "type": "string", "index": "not_analyzed"}, "slaveKey2": { "type": "string", "index": "not_analyzed"}, "townName": { "type": "string", "index": "not_analyzed"
  6. }, "slaveKey3": { "type": "string", "index": "not_analyzed"}, "slaveKey4": { "type": "string", "index": "not_analyzed"}, "town": { "type": "string", "index": "not_analyzed"
  7. }, "slaveKey2Name": { "type": "string", "index": "not_analyzed"}, "timeLevel": { "type": "string", "index": "not_analyzed"}, "dept": { "type": "string", "index": "not_analyzed"}, "hospitalName": { "type": "string", "index": "not_analyzed"
  8. }, "doctor": { "type": "string", "index": "not_analyzed"}, "createTime": { "type": "date"}, "slaveKey1Name": { "type": "string", "index": "not_analyzed"}}
  9. }'
  10. curl -XPUT 'http://10.18.43.40:9200/hlw_quota_prod/_settings' -d '{"index": {"max_result_window": 500000}}'
  11. 增加索引搜索大小
  12. PUT http://172.26.0.112:9200/wlyy_quota_test/_settings
  13. {
  14. "index": {
  15. "max_result_window": 500000
  16. }
  17. }