cxycxy_
cxycxy_
采纳率100%
2020-07-16 16:52

elsticsearch在配置IK分词插件报错,请问怎么处理?

/*
大佬们,在Linux 配置 es的IK插件时报这样的错误,是什么原因?这个也是根据GitHub上配置的,
这是配置:
curl -XPOST http://192.168.117.8:9200/index2/create/_mapping -H 'Content-Type:application/json' -d'{

    "properties": {
        "content": {
            "type": "text",
            "analyzer": "ik_max_word",
            "search_analyzer": "ik_smart"
        }
    }

}'
然后报下面的错误信息:
"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: mapping type is missing;"}],
"type":"action_request_validation_exception","reason":"Validation Failed: 1: mapping type is missing;"},"status":400}

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答