ES数据库创建索引
1. 进入Dev Tools
2. 将下列内容粘贴过去
PUT /image_search_image
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 1
},
"mappings": {
"properties": {
"id":{
"type": "keyword"
},
"create_time":{
"type": "date"
},
"info":{
"type": "text"
},
"feature":{
"type": "keyword"
}
}
}
}