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名稱


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM