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"

      }

    }

  }

}

 

 

posted @ 2021-06-25 10:29  牛郎  阅读(1093)  评论(0编辑  收藏  举报