背景:
在做es聚合查询时,遇到了如下问题:
exception [type=search_phase_execution_exception, reason=all shards failed]
结论:
查询语句中,字段类型使用错误,在es中查询字段类型为int,而查询语句中错误地用成了string。
背景:
在做es聚合查询时,遇到了如下问题:
exception [type=search_phase_execution_exception, reason=all shards failed]
结论:
查询语句中,字段类型使用错误,在es中查询字段类型为int,而查询语句中错误地用成了string。