java - 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 中退出,所以我想知道如何添加排序属性
解决方案
推荐阅读
- ionic-framework - 在移动应用程序中不使用 Ionic 组件的缺点
- android - Android中的加泰罗尼亚语和巴斯克语字符串未使用
- android - 具有多个声明的 Koin 范围?
- azure-devops - 用户无法在 Azure DevOps 中更改通知的联系人电子邮件地址
- c++ - VB.NET 中的 C++ dll - 结构兼容性
- python - 基于来自其模型类的对象的通用查询方法
- ms-access - 通过 MS-Access 中的表单输入数据 - 保留字段 1 并允许多次更新字段 2
- c# - 具有十六进制或 RGB 的一种颜色代码。以此为基础,需要根据 C# 中的百分比生成更亮和更暗的渐变颜色
- react-native - 如何在注销时从反应本机抽屉导航器中删除屏幕(卸载组件)?如何重新加载组件数据?
- nginx - 将真实客户端 IP 从 Nginx 转发到 Haproxy