|
|
@@ -34,7 +34,7 @@ public class UserDeconstructionKeywordsRecallStrategy implements RecallStrategy
|
|
|
@Qualifier("redisTemplate")
|
|
|
public RedisTemplate<String, String> redisTemplate;
|
|
|
|
|
|
- public static final int topN = 2;
|
|
|
+ public static final int topN = 5;
|
|
|
public static final String PUSH_FORM = "recall_strategy_deconstruction_keywords";
|
|
|
public static final String redisKeyPrefix = "deconstruction_keywords_recall:";
|
|
|
|
|
|
@@ -59,10 +59,12 @@ public class UserDeconstructionKeywordsRecallStrategy implements RecallStrategy
|
|
|
List<String> values = redisTemplate.opsForValue().multiGet(keys);
|
|
|
List<Long> vids = this.recall(param.getVideoId(), values);
|
|
|
FilterParam filterParam = FilterParamFactory.create(param, vids);
|
|
|
+ log.info("deconstruction keywords recall filter before: {}", vids);
|
|
|
FilterResult filterResult = filterService.filter(filterParam);
|
|
|
if (Objects.isNull(filterResult) || CollectionUtils.isEmpty(filterResult.getVideoIds())) {
|
|
|
return videos;
|
|
|
}
|
|
|
+ log.info("deconstruction keywords recall filter before: {}", filterResult.getVideoIds());
|
|
|
List<Long> filterIds = filterResult.getVideoIds();
|
|
|
int n = filterIds.size();
|
|
|
for (int i = 0; i < n; i++) {
|