赞
踩
#创建索引
PUT demo_metric_1/
GET http://localhost:9002/index[索引名]/_mapping
POST demo_metric_1/type/_mapping
{
“type”: {
“properties”: {
“log_time_date”: {
“type”: “date”,
“format”: “epoch_millis”
},
…
}
}
}
POST _reindex
{
“source”: {
“index”: “demo_metric”
},
“dest”: {
“index”: “demo_metric_1”
}
}
GET /demo_metric/type/_search
GET /demo_metric_1/type/_search
DELETE demo_metric
#创建索引
PUT demo_metric/
POST demo_metric/type/_mapping
{
“type”: {
“properties”: {
“log_time_date”: {
“type”: “date”,
“format”: “epoch_millis”
},
…
}
}
}
POST _reindex
{
“source”: {
“index”: “demo_metric_1”
},
“dest”: {
“index”: “demo_metric”
}
}
DELETE demo_metric_1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。