PUT提交报错,我没有写2个MAN,为什么还会报一些看不明白的错

来源:4-1 索引创建

qq_onepiece_29

2018-08-06 15:13

{

"settings": {

"number_of_shards":3,

"number_of_replicas":1

},

"mappings": {

"man": {

"properties": {

"name": {

"type": "text"

},

"country":{

"type" : "keyword"

},

"age":{

"type": "integer"

},

"date":{

"type": "date",

"formate":"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"

}

}

}

}

}


{

    "error": {

        "root_cause": [

            {

                "type": "mapper_parsing_exception",

                "reason": "Mapping definition for [date] has unsupported parameters:  [formate : yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis]"

            }

        ],

        "type": "mapper_parsing_exception",

        "reason": "Failed to parse mapping [man]: Mapping definition for [date] has unsupported parameters:  [formate : yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis]",

        "caused_by": {

            "type": "mapper_parsing_exception",

            "reason": "Mapping definition for [date] has unsupported parameters:  [formate : yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis]"

        }

    },

    "status": 400

}


写回答 关注

2回答

  • qq_onepiece_29
    2018-08-08 11:03:13

    谢谢,,··

  • 慕数据8087290
    2018-08-06 15:33:14

    formate --》format  

ElasticSearch入门

ElasticSearch轻松入门,Spring Boot集成ES

67740 学习 · 302 问题

查看课程

相似问题