|
@@ -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));
|