Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
easy-es
easy-es
提交
dbf1a17a
E
easy-es
项目概览
easy-es
/
easy-es
通知
96
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
easy-es
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
dbf1a17a
编写于
3月 31, 2022
作者:
FelixHPP
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build: 构建1.3.1版本, 添加查询条件支持routing 参数设置
上级
696e3cb7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
2 deletion
+11
-2
easy-es-core/pom.xml
easy-es-core/pom.xml
+1
-1
easy-es-core/src/main/java/indi/felix/easy/core/elastic/client/EasyEsService.java
...va/indi/felix/easy/core/elastic/client/EasyEsService.java
+9
-0
pom.xml
pom.xml
+1
-1
未找到文件。
easy-es-core/pom.xml
浏览文件 @
dbf1a17a
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
easy-es
</artifactId>
<groupId>
indi.felix.easy
</groupId>
<version>
1.3.
0
</version>
<version>
1.3.
1
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
easy-es-core
</artifactId>
...
...
easy-es-core/src/main/java/indi/felix/easy/core/elastic/client/EasyEsService.java
浏览文件 @
dbf1a17a
...
...
@@ -155,8 +155,17 @@ public class EasyEsService extends AbstractService {
}
public
SearchResponse
searchResponse
(
SearchSourceBuilder
builder
,
String
...
index
)
throws
IOException
{
return
searchResponse
(
builder
,
null
,
index
);
}
public
SearchResponse
searchResponse
(
SearchSourceBuilder
builder
,
List
<
String
>
routing
,
String
...
index
)
throws
IOException
{
SearchRequest
request
=
new
SearchRequest
(
index
);
request
.
source
(
builder
);
if
(
CollectionUtils
.
isNotEmpty
(
routing
)){
request
.
routing
(
routing
.
toArray
(
new
String
[
0
]));
}
SearchResponse
response
=
restHighLevelClient
.
search
(
request
,
RequestOptions
.
DEFAULT
);
return
response
;
...
...
pom.xml
浏览文件 @
dbf1a17a
...
...
@@ -7,7 +7,7 @@
<groupId>
indi.felix.easy
</groupId>
<artifactId>
easy-es
</artifactId>
<packaging>
pom
</packaging>
<version>
1.3.
0
</version>
<version>
1.3.
1
</version>
<modules>
<module>
easy-es-core
</module>
<!-- <module>easy-es-spring</module>-->
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录