橡皮、老虎皮、狮子皮哪一个最不好?

kibana创建索引报错

Kibana | 作者 WZQ | 发布于2019年11月14日 | 阅读数:4414

kibana&es 版本7.4.1错误信息:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [doc : {properties={englishName={type=keyword}, image={type=keyword}, publishTime={type=date}, code={type=keyword}, color={type=text}, definitionColorName={type=keyword}, description={type=keyword}, categoryCode={type=keyword}, inventory={type=keyword}, price={type=double}, supplier={type=keyword}, context={type=text}, style={type=keyword}, sku={type=keyword}}}]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [doc : {properties={englishName={type=keyword}, image={type=keyword}, publishTime={type=date}, code={type=keyword}, color={type=text}, definitionColorName={type=keyword}, description={type=keyword}, categoryCode={type=keyword}, inventory={type=keyword}, price={type=double}, supplier={type=keyword}, context={type=text}, style={type=keyword}, sku={type=keyword}}}]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [doc : {properties={englishName={type=keyword}, image={type=keyword}, publishTime={type=date}, code={type=keyword}, color={type=text}, definitionColorName={type=keyword}, description={type=keyword}, categoryCode={type=keyword}, inventory={type=keyword}, price={type=double}, supplier={type=keyword}, context={type=text}, style={type=keyword}, sku={type=keyword}}}]"
}
},
"status": 400
}
已邀请:

WZQ

赞同来自:

创建语句:
PUT /fond_publish
{
  "mappings": {
    "doc": {
      "properties": {
        "code": {
          "type": "keyword"
        },
        "sku": {
          "type": "keyword"
        },
        "categoryCode": {
          "type": "keyword"
        },
        "supplier": {
          "type": "keyword"
        },
        "price": {
          "type": "double"
        },
        "style": {
          "type": "keyword"
        },
        "englishName": {
          "type": "keyword"
        },
        "color": {
          "type": "text"
        },
        "definitionColorName": {
          "type": "keyword"
        },
        "description": {
          "type": "keyword"
        },
        "image": {
          "type": "keyword"
        },
        "inventory": {
          "type": "keyword"
        },
        "publishTime": {
          "type": "date"
        },
        "context": {
          "type": "text"
        }
      }
    }
  }

 

God_lockin

赞同来自:

doc -> _doc

要回复问题请先登录注册