ES 查询性能优化1. 索引设计优化1.1 分片策略合理设置分片数量:过多分片增加开销,过少分片影响并发分片大小控制:单个分片建议控制在 10GB-50GB 之间副本策略:根据查询负载和容错需求调整副本数 { "settings": { "number_of_shards": 5, "number_of_replicas": 1, "refresh_interval": "30s", "index.codec": "best_compression" } ...