elasticsearch 7.x 及以上 mapper_parsing_exception Root mapping definition has unsupported parameters(示例

Posted 晨曦_mxj

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了elasticsearch 7.x 及以上 mapper_parsing_exception Root mapping definition has unsupported parameters(示例相关的知识,希望对你有一定的参考价值。

是否同如下格式: 

{
    "settings":{
	    "number_of_shards":5,
	    "number_of_replicas":1
	 },  
    "mappings" : {
        "properties":{
            "id":{
                "type":"text",
                "store":true,
                "analyzer":"ik_smart"
            },
            "title":{
                "type":"text",
                "store":true,
                "analyzer": "ik_smart"
            },
            "content":{
                "type":"text",
                "store":true,
                "analyzer": "standard"
            }
        }
    }
    
}

  

7.x 以上版本, 使用默认的_doc作为type, 不需要自定义type名称

以上是关于elasticsearch 7.x 及以上 mapper_parsing_exception Root mapping definition has unsupported parameters(示例的主要内容,如果未能解决你的问题,请参考以下文章