illegal_argument_exception unknown setting

在kibana上通过Dev Tools,创建index(指定mapping),注意是mappings,不是mapping,因为是从Index management直接copy的,没有注意就报了如题的错:

正确写法:

PUT channel/
{
    "mappings": {
        "user": {
            "properties": {
                "id": {
                    "type": "long"
                },
                "name": {
                    "type": "text"
                }
            }
        }
    }
}

错误写法:

PUT channel/
{
    "mapping": {
        "user": {
            "properties": {
                "id": {
                    "type": "long"
                },
                "name": {
                    "type": "text"
                }
            }
        }
    }
}

错误写法报错

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "unknown setting [index.mapping.user.properties.id.type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "unknown setting [index.mapping.user.properties.id.type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings",
    "suppressed": [
      {
        "type": "illegal_argument_exception",
        "reason": "unknown setting [index.mapping.user.properties.name.type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
      }
    ]
  },
  "status": 400
}

复制mapping信息时,注意!
illegal_argument_exception unknown setting_第1张图片

你可能感兴趣的:(illegal_argument_exception unknown setting)