Authored by wangnan9279

搜ufo货号 fix

... ... @@ -60,6 +60,7 @@ public class SearchQueryHelper {
if (searchCommonHelper.isQuerySknOrSku(query)) {
queryBuilder.field(ProductIndexEsField.productSkn_productSkn_ansj);
queryBuilder.field(ProductIndexEsField.skuIds);
queryBuilder.field(ProductIndexEsField.ufoProductCode);
queryBuilder.operator(Operator.OR);
queryBuilder.minimumShouldMatch("1");
return queryBuilder;
... ...
... ... @@ -131,6 +131,7 @@ public class UfoSearchQueryHelper extends BaseService {
// 3.如果查询的是skn或skuIds
if (searchCommonHelper.isQueryUfoProductId(query)) {
queryBuilder.field(UfoProductIndexEsField.idString);
queryBuilder.field(UfoProductIndexEsField.productCode);
queryBuilder.operator(Operator.OR);
queryBuilder.minimumShouldMatch("1");
return queryBuilder;
... ...