前言
ES 7查询数据时报错 nested exception is ElasticsearchStatusException
错误如下:
Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]; nested exception is ElasticsearchStatusException[Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]]
解决办法:
-
百度一下,还是没有解决,的实体类是如下封装的:
我妥协把搜索的关键字如下改动: