|
|
@@ -36,7 +36,7 @@ public class UserDeconstructionKeywordsRecallStrategy implements RecallStrategy
|
|
|
|
|
|
public static final int topN = 5;
|
|
|
public static final String PUSH_FORM = "recall_strategy_deconstruction_keywords";
|
|
|
- public static final String redisKeyPrefix = "deconstruction_keywords_recall:";
|
|
|
+ public static final String redisKeyPrefix = "deconstruction_keywords_recall";
|
|
|
|
|
|
@Override
|
|
|
public String pushFrom() {
|
|
|
@@ -59,6 +59,7 @@ 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())) {
|
|
|
@@ -66,6 +67,7 @@ public class UserDeconstructionKeywordsRecallStrategy implements RecallStrategy
|
|
|
}
|
|
|
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++) {
|
|
|
Video video = new Video();
|