我在查询项目时收到上述错误:
{
   "error": {
      "root_cause": [],
      "type": "reduce_search_phase_exception",
      "reason": "[reduce] ",
      "phase": "query",
      "grouped": true,
      "failed_shards": [],
      "caused_by": {
         "type": "class_cast_exception",
         "reason": "java.lang.Float cannot be cast to java.lang.Double"
      }
   },
   "status": 503
}
Run Code Online (Sandbox Code Playgroud)
我的查询是:
GET items/item/_search/
{
  "query": {
    "constant_score": {
      "filter": {
        "bool": {
          "must": ....
        }
      }
    }
  },
  "sort": [{"order": {"order": "desc", "missing": "_last"}}, {"popularity": {"order": "desc", "missing": "_last"}}],
  "size": 1000,
  "from": 0
}
Run Code Online (Sandbox Code Playgroud)
我有一个线索,这是因为“排序”中的“流行度”字段,删除它时不会出现错误。
我的映射是:
"popularity": {
    "type": "double"
  },
Run Code Online (Sandbox Code Playgroud)
我的问题实际上是如何修复引发此问题的无效文档?我怎样才能找到它?
|   归档时间:  |  
           
  |  
        
|   查看次数:  |  
           266 次  |  
        
|   最近记录:  |