Showing
1 changed file
with
5 additions
and
5 deletions
@@ -24,9 +24,9 @@ public class ExtendFilterHelper { | @@ -24,9 +24,9 @@ public class ExtendFilterHelper { | ||
24 | public static QueryBuilder addFlowFilter() { | 24 | public static QueryBuilder addFlowFilter() { |
25 | BoolQueryBuilder filter = QueryBuilders.boolQuery(); | 25 | BoolQueryBuilder filter = QueryBuilders.boolQuery(); |
26 | filter.must(QueryBuilders.termQuery(ProductIndexEsField.flowType, "1")); | 26 | filter.must(QueryBuilders.termQuery(ProductIndexEsField.flowType, "1")); |
27 | - filter.mustNot(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50)); | 27 | + //filter.mustNot(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50)); |
28 | filter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y")); | 28 | filter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y")); |
29 | - filter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.shopId, SpecialShopConstants.QXJS_SHOP_ID)); | 29 | + filter.mustNot(QueryBuilders.termsQuery(ProductIndexEsField.shopId, SpecialShopConstants.DOWNGRADE_SHOPIDS)); |
30 | return filter; | 30 | return filter; |
31 | } | 31 | } |
32 | 32 | ||
@@ -38,9 +38,9 @@ public class ExtendFilterHelper { | @@ -38,9 +38,9 @@ public class ExtendFilterHelper { | ||
38 | public static QueryBuilder directTrainFilter() { | 38 | public static QueryBuilder directTrainFilter() { |
39 | BoolQueryBuilder filter = QueryBuilders.boolQuery(); | 39 | BoolQueryBuilder filter = QueryBuilders.boolQuery(); |
40 | filter.must(QueryBuilders.termQuery(ProductIndexEsField.toAddScore, "Y")); | 40 | filter.must(QueryBuilders.termQuery(ProductIndexEsField.toAddScore, "Y")); |
41 | - filter.mustNot(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50)); | 41 | + //filter.mustNot(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50)); |
42 | filter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y")); | 42 | filter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y")); |
43 | - filter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.shopId, SpecialShopConstants.QXJS_SHOP_ID)); | 43 | + filter.mustNot(QueryBuilders.termsQuery(ProductIndexEsField.shopId, SpecialShopConstants.DOWNGRADE_SHOPIDS)); |
44 | return filter; | 44 | return filter; |
45 | } | 45 | } |
46 | 46 | ||
@@ -225,7 +225,7 @@ public class ExtendFilterHelper { | @@ -225,7 +225,7 @@ public class ExtendFilterHelper { | ||
225 | filter.should(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y")); | 225 | filter.should(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y")); |
226 | //filter.should(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50)); | 226 | //filter.should(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50)); |
227 | filter.should(QueryBuilders.termsQuery(ProductIndexEsField.storeShowStatus, Arrays.asList("3", "4"))); | 227 | filter.should(QueryBuilders.termsQuery(ProductIndexEsField.storeShowStatus, Arrays.asList("3", "4"))); |
228 | - filter.should(QueryBuilders.termQuery(ProductIndexEsField.shopId, SpecialShopConstants.QXJS_SHOP_ID)); | 228 | + filter.should(QueryBuilders.termsQuery(ProductIndexEsField.shopId, SpecialShopConstants.DOWNGRADE_SHOPIDS)); |
229 | return filter; | 229 | return filter; |
230 | } | 230 | } |
231 | 231 |
-
Please register or login to post a comment