Toggle navigation
Toggle navigation
This project
Loading...
Sign in
yoho-search
/
yohomars-search-service
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
wangnan
8 years ago
Commit
269e1e63aeb3e0b7e3ab1cba99d99876b7ff3ed1
1 parent
f702f0c9
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
yohomars-search-service/src/main/java/com/yohomars/search/service/SearchServiceHelper.java
yohomars-search-service/src/main/java/com/yohomars/search/service/SearchServiceHelper.java
View file @
269e1e6
...
...
@@ -112,7 +112,7 @@ public class SearchServiceHelper {
BoolQueryBuilder
boolFilter
=
QueryBuilders
.
boolQuery
();
//默认搜索isShield=0的
boolFilter
.
must
(
QueryBuilders
.
termsQuery
(
"isShield"
,
0
));
boolFilter
.
must
(
QueryBuilders
.
termsQuery
(
"isShield"
,
"0"
));
//添加过滤请求
boolFilter
=
BoolQueryBuilder
(
paramMap
,
boolFilter
,
ISearchConstans
.
PARAM_SEARCH_ID
);
...
...
Please
register
or
login
to post a comment