背景:

        在做es聚合查询时,遇到了如下问题:

exception [type=search_phase_execution_exception, reason=all shards failed]

结论:

         查询语句中,字段类型使用错误,在es中查询字段类型为int,而查询语句中错误地用成了string。       

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐