Authored by unknown

fix 默认过滤参数

@@ -161,6 +161,7 @@ public class SearchLikeHelper { @@ -161,6 +161,7 @@ public class SearchLikeHelper {
161 public BoolQueryBuilder genDefaultSearchLikeFilter(List<String> notProductSkns, boolean isGlobal) { 161 public BoolQueryBuilder genDefaultSearchLikeFilter(List<String> notProductSkns, boolean isGlobal) {
162 BoolQueryBuilder boolFilter = QueryBuilders.boolQuery(); 162 BoolQueryBuilder boolFilter = QueryBuilders.boolQuery();
163 boolFilter.mustNot(QueryBuilders.termsQuery("isSeckill", "Y")); 163 boolFilter.mustNot(QueryBuilders.termsQuery("isSeckill", "Y"));
  164 + boolFilter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.isFobbiden, 1));
164 boolFilter.must(QueryBuilders.termQuery("status", 1)); 165 boolFilter.must(QueryBuilders.termQuery("status", 1));
165 boolFilter.must(QueryBuilders.termQuery("isOutlets", 2)); 166 boolFilter.must(QueryBuilders.termQuery("isOutlets", 2));
166 boolFilter.must(QueryBuilders.termQuery("attribute", 1)); 167 boolFilter.must(QueryBuilders.termQuery("attribute", 1));
@@ -240,6 +240,7 @@ public class SknImageVectorsServiceImpl implements ISknImageVectorsService, Appl @@ -240,6 +240,7 @@ public class SknImageVectorsServiceImpl implements ISknImageVectorsService, Appl
240 private BoolQueryBuilder genFilterBuilder(List<Integer> productSkns) { 240 private BoolQueryBuilder genFilterBuilder(List<Integer> productSkns) {
241 BoolQueryBuilder boolFilter = QueryBuilders.boolQuery(); 241 BoolQueryBuilder boolFilter = QueryBuilders.boolQuery();
242 boolFilter.mustNot(QueryBuilders.termsQuery(ProductIndexEsField.isSeckill, "Y")); 242 boolFilter.mustNot(QueryBuilders.termsQuery(ProductIndexEsField.isSeckill, "Y"));
  243 + boolFilter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.isFobbiden, 1));
243 boolFilter.must(QueryBuilders.termQuery(ProductIndexEsField.status, 1)); 244 boolFilter.must(QueryBuilders.termQuery(ProductIndexEsField.status, 1));
244 boolFilter.must(QueryBuilders.termQuery(ProductIndexEsField.isOutlets, 2)); 245 boolFilter.must(QueryBuilders.termQuery(ProductIndexEsField.isOutlets, 2));
245 boolFilter.must(QueryBuilders.termQuery(ProductIndexEsField.attribute, 1)); 246 boolFilter.must(QueryBuilders.termQuery(ProductIndexEsField.attribute, 1));