Authored by unknown

sortgroup考虑ufo的

... ... @@ -114,8 +114,10 @@ public class SortGroupService extends AbstractCacheComponent<JSONArray> implemen
if (!searchCommonHelper.containGlobal(paramMap)) {
boolFilter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y"));
}
boolFilter.mustNot(QueryBuilders.termsQuery(ProductIndexEsField.isUfo, "Y"));
// 如果contain_ufo!=Y,则过滤掉ufo的商品
if (!searchCommonHelper.containUFO(paramMap)) {
boolFilter.mustNot(QueryBuilders.termQuery(ProductIndexEsField.isUfo, "Y"));
}
SearchParam searchParam = new SearchParam();
searchParam.setFiter(boolFilter);
return searchParam;
... ...