Authored by hugufei

仅线下店可售的商品也不参与召回

@@ -208,6 +208,7 @@ public class ExtendFilterHelper { @@ -208,6 +208,7 @@ public class ExtendFilterHelper {
208 filter.should(QueryBuilders.termQuery(ProductIndexEsField.flowType, "2")); 208 filter.should(QueryBuilders.termQuery(ProductIndexEsField.flowType, "2"));
209 filter.should(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y")); 209 filter.should(QueryBuilders.termQuery(ProductIndexEsField.isGlobal, "Y"));
210 filter.should(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50)); 210 filter.should(QueryBuilders.rangeQuery(ProductIndexEsField.breakSizePercent).gt(50));
  211 + filter.should(QueryBuilders.termsQuery(ProductIndexEsField.storeShowStatus, Arrays.asList("3", "4")));
211 return filter; 212 return filter;
212 } 213 }
213 214
@@ -13,7 +13,7 @@ import java.util.Arrays; @@ -13,7 +13,7 @@ import java.util.Arrays;
13 */ 13 */
14 public class OfflineSaleOnlyScorer implements IScorer { 14 public class OfflineSaleOnlyScorer implements IScorer {
15 15
16 - private static final float OFFLINE_SALE_ONLY_WEIGHT = 0.40f;// 仅线下可售商品商品 16 + private static final float OFFLINE_SALE_ONLY_WEIGHT = 0.50f;// 仅线下可售商品商品
17 17
18 @Override 18 @Override
19 public void addScorer(YohoFilterFunctionBuilders yohoFilterFunctionBuilders) { 19 public void addScorer(YohoFilterFunctionBuilders yohoFilterFunctionBuilders) {