创建 Mapping 一直出错已经重新安装过 ik

创建 Mapping 一直出错,我已经重新安装过 ik
mac,es 6.8

另一个问题,es 7 好像抛弃使用 type 项目如何过度呢?

{
    "error":{
        "root_cause":[
            {
                "type":"mapper_parsing_exception",
                "reason":"Mapping definition for [title] has unsupported parameters: [search_analyzer : ik_smart] [analyzer : ik_max_word]"
            }
        ],
        "type":"mapper_parsing_exception",
        "reason":"Mapping definition for [title] has unsupported parameters: [search_analyzer : ik_smart] [analyzer : ik_max_word]"
    },
    "status":400
}

mapping

{
    "shop":{
        "_source":{
            "enabled":true
        },
        "properties":{
            "shopid":{
                "type":"long"
            },
            "parent":{
                "type":"long"
            },
            "order":{
                "type":"long"
            },
            "title":{
                "type":"keyword",
                "analyzer":"ik_max_word",
                "search_analyzer":"ik_smart"
            },
            "keyword":{
                "type":"keyword",
                "analyzer":"ik_max_word",
                "search_analyzer":"ik_smart"
            },
            "thumbnail":{
                "type":"text"
            },
            "details":{
                "type":"text"
            },
            "original_thumbnail":{
                "type":"text"
            },
            "original_details":{
                "type":"text"
            },
            "history_thumbnail":{
                "type":"text"
            },
            "history_details":{
                "type":"text"
            },
            "width":{
                "type":"integer"
            },
            "height":{
                "type":"integer"
            },
            "unit":{
                "type":"text"
            },
            "price":{
                "type":"scaled_float"
            },
            "vip_price":{
                "type":"scaled_float"
            },
            "form":{
                "type":"integer"
            },
            "ban":{
                "type":"boolean"
            },
            "deleted_at":{
                "type":"date"
            }
        }
    }
}
thanks.
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
leo
最佳答案

@StringKe 装完之后重启过 ES 没

4年前 评论
讨论数量: 4
leo
$ sudo /usr/share/elasticsearch/bin/elasticsearch-plugin list

这个输出啥

4年前 评论
leo

@StringKe 装完之后重启过 ES 没

4年前 评论
StringKe

@leo 重启了,我今天再试的时候没有这个问题了,我其中没有重启过我的mbp

4年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!