elasticsearch - ElasticSearch中的Random InternalServerError

标签 elasticsearch

我们一直在ElasticSearch中的随机查询上随机出现以下错误。

{
\"status\":500,
\"displayName\":\"InternalServerError\",
\"message\":\"JsonParseException[Unrecognized token 'ards': was expecting ('true', 'false' or 'null')\n at [Source: [B@4103c9af; line: 1, column: 38]]\",
\"body\":{
         \"error\":\"JsonParseException[Unrecognized token 'ards': was expecting ('true', 'false' or 'null')\n at [Source: [B@4103c9af; line: 1, column: 38]]\",\"status\":500
         }
}

当我们运行一个非常简单的查询(例如
{
  "from":0,
  "size":9,
  "query":{
    "terms":{
      "id": [496161,496895,500119,544238,547116,547302,547364,633486,657141]
    }
  }
}

顺便说一句,没有ID之一的相同查询顺利通过。

最佳答案

似乎与下面的链接中的问题相同,原因是you have indexed a first document with ... as a boolean。 ta田
您可能想在<host>:<port>/<index>/<type>/_mapping上检查实际的映射。

关于elasticsearch - ElasticSearch中的Random InternalServerError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35018569/

相关文章:

elasticsearch - 如何在Elastic APM中启用对Spring批处理的监视?

elasticsearch - ElasticSearch按列表字段中的属性聚合

elasticsearch - 未使用Logstash模板的设置创建Elasticsearch索引

elasticsearch - 如何配置Kibana到Elasticsearch Cluster?

performance - elasticsearch中的ConstantScoreQuery

elasticsearch - 字符串字段中的Elasticsearch搜索结果顺序不正确或不相关

Elasticsearch:禁用索引文档的版本控制

javascript - 如何避免向 ElasticSearch 插入重复文档

elasticsearch - 需要从EKS运送原木到松紧带

elasticsearch - 在Elasticsearch中按查询分组