根映射定义具有不受支持的参数(mapper_parsing_exception)
问题描述:
我是Elasticsearch的新手。我已经尝试了Stack Overflow和其他网站上提供的不同解决方案,但他们没有为我工作,这就是为什么我发布这个问题。根映射定义具有不受支持的参数(mapper_parsing_exception)
我想补充分词“:‘uax_url_email’,这样我可以轻松地搜索电子邮件查询
但是,当我设置的映射其弹性搜索是给我这个错误:
Root mapping definition has unsupported parameters (mapper_parsing_exception)
我试图删除索引,然后重新创建它,但它也没有帮助。
我的映射链接。
http://localhost:9200/users/user/_mapping
{
"settings": {
"analysis": {
"analyzer": {
"urls-links-emails": {
"type": "custom",
"tokenizer": "uax_url_email"
}
}
}
},
"mappings":{
"user": {
"properties": {
"id" : {"type": "long"},
"first_name" : {"type": "text"},
"middle_name" : {"type": "text"},
"last_name" : {"type": "text"},
"full_name" : {"type": "text"},
"image" : {"type": "text"},
"email" : {"type": "text", "analyzer": "urls-links-emails"},
"mobile_number" : {"type": "text"},
"profile_image" : {"type": "text"},
"thumbnail" : {"type": "text"},
"role" : {"type": "text"},
"role_id" : {"type": "byte"},
"joined_date" : {"type": "date", "format": "yyyy-MM-dd HH:mm:ss"},
"updated_date" : {"type": "date", "format": "yyyy-MM-dd HH:mm:ss"}
}
}
}
}
我测试你的JSON与本地主机:9200/test1的PUT请求,它的工作原理(版本5.5.1)。 – MartinSchulze
感谢@MartinSchulze的回复,但它仍然不适用于我:(我的弹性搜索版本也是5.5 –
请显示请求。您是否有正确的地址?它必须是http://的PUT请求localhost:9200/users – MartinSchulze