Authored by wangnan9279

搜ufo货号 fix

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