学海无涯,牛逼plus 2023-03-28 14:37 采纳率: 0%
浏览 10

elasticsearch No handler for type [keyword]

elasticsearch

elasticsearch创建索引时报错,{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [keyword] declared on field [builder_winpro_no]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [business]: No handler for type [keyword] declared on field [builder_winpro_no]","caused_by":{"type":"mapper_parsing_exception","reason":"No handler for type [keyword] declared on field [build
创建索引的脚本:

curl -XPUT http://127.0.0.1:9290/business_oppo_info -H "Content-Type: application/json" -d '
{
    "settings": {
        "number_of_shards": 1,
        "number_of_replicas": 0
    },
    "mappings": {
        "business": {
            "properties": {
                "busi_id": {
                    "type": "integer"
                },
                "busi_num": {
                    "type": "keyword"
                },
                "busi_type": {
                    "type": "keyword"
                },
                "customer_name": {
                    "type": "String"
                },
                "sign_object_code": {
                    "type": "keyword"
                },
                "customer_addr": {
                    "type": "String"
                },
                "contacts_name": {
                    "type": "keyword"
                },
                "contacts_post": {
                    "type": "keyword"
                },
                "contacts_email": {
                    "type": "String"
                },
                "contacts_tel": {
                    "type": "keyword"
                },
                "industry_category_code": {
                    "type": "keyword"
                },
                "specialty_class_code": {
                    "type": "keyword"
                },
                "busi_name": {
                    "type": "String"
                },
                "busi_desc": {
                    "type": "String"
                },
                "customer_requirement": {
                    "type": "String"
                },
                "competition_situation": {
                    "type": "String"
                },
                "current_stage": {
                    "type": "keyword"
                },
                "exp_sign_date": {
                    "type": "keyword"
                },
                "gross_income": {
                    "type": "keyword"
                },
                "protocol_period": {
                    "type": "keyword"
                },
                "dep_branch_company": {
                    "type": "String"
                },
                "account_manager": {
                    "type": "keyword"
                },
                "account_manager_telephone": {
                    "type": "keyword"
                },
                "crt_userid": {
                    "type": "integer"
                },
                "crt_time": {
                    "type": "date"
                },
                "upd_userid": {
                    "type": "integer"
                },
                "upd_time": {
                    "type": "date"
                },
                "dept_id": {
                    "type": "integer"
                },
                "busi_state": {
                    "type": "integer"
                },
                "is_delete": {
                    "type": "integer"
                },
                "project_budget": {
                    "type": "keyword"
                },
                "current_progress": {
                    "type": "String"
                },
                "building_side": {
                    "type": "String"
                },
                "support_type": {
                    "type": "integer"
                },
                "support_dept": {
                    "type": "integer"
                },
                "state": {
                    "type": "keyword"
                },
                "process_inst_id": {
                    "type": "keyword"
                },
                "approve_time": {
                    "type": "date"
                },
                "obtain_probability": {
                    "type": "integer"
                },
                "zy_specialty_class_code": {
                    "type": "keyword"
                },
                "assign_time": {
                    "type": "date"
                },
                "source_region": {
                    "type": "keyword"
                },
                "benefits": {
                    "type": "keyword"
                },
                "margin_rate": {
                    "type": "keyword"
                },
                "is_building_side": {
                    "type": "keyword"
                },
                "inte_core_comp": {
                    "type": "String"
                },
                "prod_oper_core_comp": {
                    "type": "String"
                },
                "software_support_type": {
                    "type": "integer"
                },
                "techServicePer": {
                    "type": "integer"
                },
                "custManagerId": {
                    "type": "integer"
                },
                "partake_comment": {
                    "type": "String"
                },
                "software_support_not_join": {
                    "type": "keyword"
                },
                "software_support_not_join_detail": {
                    "type": "String"
                },
                "product_manager_id": {
                    "type": "integer"
                },
                "product_manager_name": {
                    "type": "keyword"
                },
                "win_entry_time": {
                    "type": "keyword"
                },
                "finish_time": {
                    "type": "keyword"
                },
                "remark": {
                    "type": "String"
                },
                "pre_manager": {
                    "type": "integer"
                },
                "builder_winpro_name": {
                    "type": "String"
                },
                "builder_winpro_no": {
                    "type": "keyword"
                },
                "rel_busi_num": {
                    "type": "keyword"
                },
                "is_preentry": {
                    "type": "keyword"
                },
                "is_import": {
                    "type": "keyword"
                },
                "site_project_manager_id": {
                    "type": "integer"
                },
                "report_user_id": {
                    "type": "integer"
                },
                "all_values": {
                    "type": "String"
                },
                "data_type": {
                    "type": "String"
                },
                "pv": {
                    "type": "integer"
                },
                "click_num": {
                    "type": "integer"
                },
                "productManager": {
                    "type": "keyword"
                }


            }
        }
    }
}
'

elaticsearch版本 2.4.1

  • 写回答

1条回答 默认 最新

  • CSDN-Ada助手 CSDN-AI 官方账号 2023-03-29 02:06
    关注
    不知道你这个问题是否已经解决, 如果还没有解决的话:

    如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^
    评论

报告相同问题?

问题事件

  • 创建了问题 3月28日

悬赏问题

  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值