1、索引副本拷贝
post http://IP:9200/_reindex
{
"source": {
"index": "original_index"
},
"dest": {
"index": "new_index"
}
}
2、索引别名切换:
POST http://IP:9200/_aliases
{
"actions":[
{
"add":{
"index":"new_index",
"alias":"t_simple_dict"
}
},
{
"remove":{
"index":"old_index",
"alias":"t_simple_dict"
}
}
]
}
3、分桶上限设置:
put http://IP:9200/_cluster/settings
{
"persistents":{
"search.max_buckets":1000000
}
}
4、分桶统计查询
post http://IP:9200/index_data/_search
{ "size":0,
"query": {
"match_all": {}
},
"aggs": {
"group_name1": {
"terms": {
"size": 20000,
"field": "field_name.keyword",
"min_doc_count": 15
}
}
}
}



