promotionindex search add isdel filter
Showing
1 changed file
with
1 additions
and
0 deletions
@@ -58,6 +58,7 @@ public class PromotionIndexBaseService { | @@ -58,6 +58,7 @@ public class PromotionIndexBaseService { | ||
58 | BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery(); | 58 | BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery(); |
59 | boolQueryBuilder.must(QueryBuilders.termsQuery(ProductIndexEsField.id, ids)); | 59 | boolQueryBuilder.must(QueryBuilders.termsQuery(ProductIndexEsField.id, ids)); |
60 | boolQueryBuilder.must(QueryBuilders.termQuery(ProductIndexEsField.status, 1)); | 60 | boolQueryBuilder.must(QueryBuilders.termQuery(ProductIndexEsField.status, 1)); |
61 | + boolQueryBuilder.mustNot(QueryBuilders.termQuery("isDel", "Y")); | ||
61 | 62 | ||
62 | searchParam.setFiter(boolQueryBuilder); | 63 | searchParam.setFiter(boolQueryBuilder); |
63 | searchParam.setSize(ids.size()); | 64 | searchParam.setSize(ids.size()); |
-
Please register or login to post a comment