|
@@ -26,6 +26,8 @@ public class ShareWidthRecallStrategy implements RecallStrategy {
|
|
|
|
|
|
@Value("${ShareDeepRecallStrategyRecallNumber:500}")
|
|
|
private String shareDeepRecallStrategyRecallNumber;
|
|
|
+ @Value("${ShareDeepRecallStrategyRecallNumberAfterFilter:20}")
|
|
|
+ private String shareDeepRecallStrategyRecallNumberAfterFilter;
|
|
|
|
|
|
public static final String PUSH_FORM = "share_width_recall_strategy";
|
|
|
|
|
@@ -54,7 +56,7 @@ public class ShareWidthRecallStrategy implements RecallStrategy {
|
|
|
FilterResult filterResult = filterService.filter(filterParam);
|
|
|
List<Video> videosResult = new ArrayList<>();
|
|
|
if (filterResult != null && CollectionUtils.isNotEmpty(filterResult.getVideoIds())) {
|
|
|
- filterResult.getVideoIds().forEach(vid -> {
|
|
|
+ filterResult.getVideoIds().stream().limit(Integer.parseInt(shareDeepRecallStrategyRecallNumberAfterFilter)).forEach(vid -> {
|
|
|
Video video = new Video();
|
|
|
video.setVideoId(vid);
|
|
|
video.setAbCode(param.getAbCode());
|