...
|
...
|
@@ -24,9 +24,9 @@ public class ExtendFilterHelper { |
|
|
public static QueryBuilder addFlowFilter() {
|
|
|
BoolQueryBuilder filter = QueryBuilders.boolQuery();
|
|
|
filter.must(QueryBuilders.termQuery(ProductIndexEsField.flowType, "1"));
|
|
|
filter.mustNot(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50));
|
|
|
//filter.mustNot(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50));
|
|
|
filter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y"));
|
|
|
filter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.shopId, SpecialShopConstants.QXJS_SHOP_ID));
|
|
|
filter.mustNot(QueryBuilders.termsQuery(ProductIndexEsField.shopId, SpecialShopConstants.DOWNGRADE_SHOPIDS));
|
|
|
return filter;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -38,9 +38,9 @@ public class ExtendFilterHelper { |
|
|
public static QueryBuilder directTrainFilter() {
|
|
|
BoolQueryBuilder filter = QueryBuilders.boolQuery();
|
|
|
filter.must(QueryBuilders.termQuery(ProductIndexEsField.toAddScore, "Y"));
|
|
|
filter.mustNot(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50));
|
|
|
//filter.mustNot(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50));
|
|
|
filter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y"));
|
|
|
filter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.shopId, SpecialShopConstants.QXJS_SHOP_ID));
|
|
|
filter.mustNot(QueryBuilders.termsQuery(ProductIndexEsField.shopId, SpecialShopConstants.DOWNGRADE_SHOPIDS));
|
|
|
return filter;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -225,7 +225,7 @@ public class ExtendFilterHelper { |
|
|
filter.should(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y"));
|
|
|
//filter.should(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50));
|
|
|
filter.should(QueryBuilders.termsQuery(ProductIndexEsField.storeShowStatus, Arrays.asList("3", "4")));
|
|
|
filter.should(QueryBuilders.termQuery(ProductIndexEsField.shopId, SpecialShopConstants.QXJS_SHOP_ID));
|
|
|
filter.should(QueryBuilders.termsQuery(ProductIndexEsField.shopId, SpecialShopConstants.DOWNGRADE_SHOPIDS));
|
|
|
return filter;
|
|
|
}
|
|
|
|
...
|
...
|
|