boolQuery时报错

来源:5-6 项目后端 REST API 实现

Judas2

2020-06-05 19:01

http://img4.mukewang.com/5eda241f0001ee1307320312.jpg

{"error":{"root_cause":[{"type":"json_parse_exception","reason":"Current token (VALUE_NUMBER_INT) not of boolean type\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@1c9f3434; line: 1, column: 322]"}],"type":"json_parse_exception","reason":"Current token (VALUE_NUMBER_INT) not of boolean type\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@1c9f3434; line: 1, column: 322]"},"status":500}



有哪位知道是啥原因, 跪谢!!!!!!!!!!!!!!!!!!!!!!!!!!

写回答 关注

3回答

  • weixin_慕无忌1532552
    2020-08-05 15:00:36

    解决了吗

  • qq_shuirouyan_0
    2020-07-04 15:39:07

    [Elasticsearch exception [type=json_parse_exception, reason=Current token (VALUE_NUMBER_INT) not of boolean type

    我也遇到了这样的异常,

    [Elasticsearch异常[type = json_parse_exception,原因=当前令牌(VALUE_NUMBER_INT)不是布尔类型

  • Judas2
    2020-06-05 19:02:39

    http://img4.mukewang.com/5eda26380001e76810480483.jpg

    完全是老师的代码, 结果到查询这里就开始报错!!!!  啊啊啊啊

Springboot + ElasticSearch 构建博客检索系统

Springboot + ElasticSearch 构建个人博客检索系统

22961 学习 · 112 问题

查看课程

相似问题