首页 > 解决方案 > ES错误:请求处理失败;[172.17.1.128:9300][索引:数据/读取/搜索[相位/dfs]]];

问题描述

控制台显示:

Request processing failed; nested exception is Failed to execute phase [dfs], all shards failed; shardFailures {[hivHRf8sRnKAn6pyUnFVZQ][quickreply][0]: RemoteTransportException[[hivHRf8][172.17.1.128:9300][indices:data/read/search[phase/dfs]]];

es 版本:

{
"name" : "b9a94c35e8b1",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "jMIbEzZTRh2IltEDBQYGQQ",
"version" : {
"number" : "7.2.0",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "508c38a",
"build_date" : "2019-06-20T15:54:18.811730Z",
"build_snapshot" : false,
"lucene_version" : "8.0.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
 "tagline" : "You Know, for Search"
}

当我搜索和排序时,控制台会显示这个。

搜索代码:

map.put("quickReplyList",quickReplyRes.findByOrgiAndCreater(super.getOrgi(request)  ,MainContext.QuickType.PUB.toString(), null , PageRequest.of(super.getP(request), super.getPs(request),Sort.by(Sort.Direction.ASC, "sort"))));

我认为“排序”不会在 ES 中退出,所以我想知道如何添加排序属性

标签: javaelasticsearch

解决方案


推荐阅读