ES清理索引数据
手动清理
查询历史索引
curl -XGET -s http://192.168.8.6:9200/_cat/indices | awk '{print $3}'
删除数据
curl -XDELETE http://192.168.8.6:9200/sw_segment-20220622
删除索引名称为
sw_segment-20220622
的数据
释放空间
curl -XPOST http://192.168.8.6:9200/_forcemerge?only_expunge_deletes=true&max_num_segments=1