ElasticSearch添加表,字段设计

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33212500/article/details/81357257

curl -XPOST 'localhost:9200/index/aatype/_mapping?pretty' -d '{
    "aatype": {
            "properties": {
                "id": {
                    "type": "long"
                },
                "name": {
                    "type": "keyword"
                },
                "createTime": {
                    "type": "date",
                    "format": "yyyy-MM-dd HH:mm:ss,SSS||yyyy-MM-dd HH:mm:ss||epoch_millis"
                }
            }
        }
  }'

猜你喜欢

转载自blog.csdn.net/qq_33212500/article/details/81357257