...
|
...
|
@@ -49,6 +49,7 @@ public class ExtendFilterHelper { |
|
|
//must not
|
|
|
filter.mustNot(forbiddenFlowFilter());
|
|
|
filter.mustNot(isGlobalFilter());
|
|
|
filter.mustNot(breakSizeFilter());
|
|
|
return filter;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -73,6 +74,7 @@ public class ExtendFilterHelper { |
|
|
filter.mustNot(forbiddenFlowFilter());
|
|
|
filter.mustNot(latestReducePriceFilter());
|
|
|
filter.mustNot(isGlobalFilter());
|
|
|
filter.mustNot(breakSizeFilter());
|
|
|
return filter;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -89,6 +91,7 @@ public class ExtendFilterHelper { |
|
|
filter.mustNot(forbiddenFlowFilter());
|
|
|
filter.mustNot(newFilter());
|
|
|
filter.mustNot(isGlobalFilter());
|
|
|
filter.mustNot(breakSizeFilter());
|
|
|
return filter;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -105,6 +108,7 @@ public class ExtendFilterHelper { |
|
|
filter.mustNot(newFilter());
|
|
|
filter.mustNot(latestReducePriceFilter());
|
|
|
filter.mustNot(isGlobalFilter());
|
|
|
filter.mustNot(breakSizeFilter());
|
|
|
return filter;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -122,6 +126,7 @@ public class ExtendFilterHelper { |
|
|
filter.mustNot(newFilter());
|
|
|
filter.mustNot(latestReducePriceFilter());
|
|
|
filter.mustNot(isGlobalFilter());
|
|
|
filter.mustNot(breakSizeFilter());
|
|
|
return filter;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -137,6 +142,7 @@ public class ExtendFilterHelper { |
|
|
//must not
|
|
|
filter.mustNot(forbiddenFlowFilter());
|
|
|
filter.mustNot(isGlobalFilter());
|
|
|
filter.mustNot(breakSizeFilter());
|
|
|
return filter;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -152,6 +158,10 @@ public class ExtendFilterHelper { |
|
|
return QueryBuilders.termsQuery(ProductIndexEsField.isnew,"Y");
|
|
|
}
|
|
|
|
|
|
private static QueryBuilder breakSizeFilter (){
|
|
|
return QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50);
|
|
|
}
|
|
|
|
|
|
private static QueryBuilder brandIdsFilter (List<Integer> brandIds){
|
|
|
BoolQueryBuilder filter = QueryBuilders.boolQuery();
|
|
|
if (brandIds != null && !brandIds.isEmpty()) {
|
...
|
...
|
|