下面这段是elasticsearch6里创建索引的语句,请问在7里该怎么改?
curl -k -H "Content-Type: application/json" -XPUT http://es:9200/griffin -d
'{
"aliases": {},
"mappings": {
"accuracy": {
"properties": {
"name": {
"fields": {
"keyword": {
"ignore_above": 256,
"type": "keyword"
}
},
"type": "text"
},
"tmst": {
"type": "date"
}
}
}
},
"settings": {
"index": {
"number_of_replicas": "2",
"number_of_shards": "5"
}
}
}'