关闭所有myidx-开头的索引的refresh(数据写入后没refresh就搜索不出来)
#PUT myidx-*/_settings{"index": {"refresh_interval": "-1"}}
配置分片(shard)数,副本(replica)数,并配置作为写索引加入到别名(alias) myidx中
#PUT myidx-write{"settings" : {"index" : {"number_of_shards": 1,"number_of_replicas": 0}},"aliases": {"myidx": {"is_write_index": true}}}
:::tips
注意number_of_shards只能在创建index的时候配置
:::
