Authored by hugufei

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

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