Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]

这篇具有很好参考价值的文章主要介绍了Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]: Root mapping definition has unsupported parameters:

 文章来源地址https://www.toymoban.com/news/detail-505964.html

我们在使用RestClient创建索引库时出现了这个错误。

可以检查一下 CreateIndexRequest 类型变量request 是否导入正确的包

有两个同名的包,我们选择:

import org.elasticsearch.client.indices.CreateIndexRequest;

创建的索引库DSL语法示例:

Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]

 

到了这里,关于Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • elasticsearch 7.12.1报错处理:ElasticsearchStatusException[Elasticsearch exception [type=parse_exception]

    提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 最近在使用RestHighLevelClient测试后端数据时,遇到如下一个报错: 问题出在我没有给 geoDistanceQuery 设置中心坐标 设置中心坐标后问题得到解决。 以下是elastic客户端查询索引的代码

    2024年02月16日
    浏览(30)
  • Elasticsearch exception [type=parsing_exception, reason=[multi_match] unknown token [START_ARRAY] af

    代码报错 QueryBuilder queryBuilder = QueryBuilders.multiMatchQuery(deptIdList, “data.deptId”, “modifiedData.deptId”); multiMatchQuery这个API,第一个参数不支持List类型, 虽然传List没报错, 但是往ES发送查询请求的时候就会抛异常出来 传一个字段, 如果你想多字段in查询,就用类似下面这样写法就可以了

    2024年02月07日
    浏览(40)
  • ES内存问题 Elasticsearch exception type=circuit_breaking_exception,

    Elasticsearch exception [type=circuit_breaking_exception, reason=[parent] Data too large, data for [http_request] would be [986856200/941.1mb], which is larger than the limit of [986061209/940.3mb], real usage: [986855776/941.1mb], new bytes reserved: [424/424b], usages [request=0/0b, fielddata=2884/2.8kb, in_flight_requests=424/424b, model_inference=0/0b, a

    2023年04月08日
    浏览(40)
  • org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=illegal_argument_excep

    org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=illegal_argument_exception, reason=request [/zc/_search] contains unrecognized parameters: [ccs_minimize_roundtrips], [ignore_throttled]] 原因: 该异常是由于在对索引进行搜索请求时,使用了不被识别的参数导致的。具体来说,异常信息中列出了两

    2024年02月08日
    浏览(33)
  • ES排序报错:Elasticsearch exception [type=illegal_argument_exception, reason=Text

    翻译过来就是: 对于需要每个文档字段数据(如聚合和排序)的操作,文本字段没有进行优化,因此这些操作在默认情况下是禁用的。请使用字段代替。或者,在[createTime]上设置fielddata=true,以便通过反求倒排索引来加载字段数据。注意,这可能会使用有效内存。] 更改后

    2024年02月11日
    浏览(59)
  • Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]

    Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed] 今天在做项目遇到这个问题,Es那边出现了问题,谷粒商城去Es中查数据的时候,根据品牌id去查询数据报错。   {\\\"error\\\":{\\\"root_cause\\\":[{ \\\"type\\\":\\\"query_shard_exception\\\",\\\"reason\\\":\\\"failed to create query: {n  \\\"bool\\\" : {n    \\\"fil

    2024年02月02日
    浏览(30)
  • Elasticsearch exception [type=index_not_found_exception, reason=no such index [**]]

     1.代码运行出现找不到Index,先排除index是否存在。   2.springboot和ES映射,默认是把对象类型映射为index,class对象默认是大写开头,所以要看是都是因为大小写不匹配。如若因为大小写原因导致,可以通过@Document注解指定index  

    2024年02月14日
    浏览(32)
  • 解决Elasticsearch exception [type=circuit_breaking_exception, reason=[parent] Data too large问题

    一、背景 公司有一批8万的数据存储在Mysql中,然后我使用多线程的方式调用Elasticsearch的bulk()方法推送到ES,但是在推送过程中出现了该问题,这属于插入数据时产生的问题 二、异常 三、解决办法 加大 -Xms 和 -Xmx 的值,比如 docker-compose.yaml 文件中可以这样设置: 四、解释

    2024年02月03日
    浏览(36)
  • Elasticsearch exception [type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index r【已解决】

    亲测 2022/08/16 BJ 集群存储资源高水位异常,默认当磁盘空间大于95%时,就会禁止写入。 首先让es节点腾出足够的空间、 删除磁盘数据 ; 扩容。 执行恢复命令 让es恢复到可写入状态。问题解决!

    2024年02月12日
    浏览(31)
  • 报错:Parsed mapper file: ‘file mapper.xml 导致无法启动

    报错 : Logging initialized using \\\'class org.apache.ibatis.logging.stdout.StdOutImpl\\\' adapter. Registered plugin: \\\'com.github.yulichang.interceptor.MPJInterceptor@3b2c8bda\\\' Parsed mapper file: \\\'file [/Mapper.xml]\\\'  application无法启动 我这边产生原因是项目中添加了 mybayis-plus-join插件 导致这个问题 然后本人一顿骚操作:升

    2024年02月04日
    浏览(34)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包