|
@@ -533,9 +533,11 @@ public class CoreServiceImpl implements CoreService {
|
|
|
}
|
|
}
|
|
|
RecallVideoScoreParam param = new RecallVideoScoreParam();
|
|
RecallVideoScoreParam param = new RecallVideoScoreParam();
|
|
|
param.setQueryText(matchContent.getTitle());
|
|
param.setQueryText(matchContent.getTitle());
|
|
|
- param.setTopN(3);
|
|
|
|
|
|
|
+ param.setTopN(10);
|
|
|
param.setAlpha(0.6);
|
|
param.setAlpha(0.6);
|
|
|
param.setSimMin(0.6);
|
|
param.setSimMin(0.6);
|
|
|
|
|
+ param.setRovMin(0.0);
|
|
|
|
|
+ param.setDays(30);
|
|
|
if (StringUtils.isNotEmpty(recallVideoConfigCode)) {
|
|
if (StringUtils.isNotEmpty(recallVideoConfigCode)) {
|
|
|
param.setConfigCode(recallVideoConfigCode);
|
|
param.setConfigCode(recallVideoConfigCode);
|
|
|
}
|
|
}
|
|
@@ -545,6 +547,10 @@ public class CoreServiceImpl implements CoreService {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
log.info("recallWithScore results, contentId={}, total={}", matchContent.getSourceId(), result.getTotal());
|
|
log.info("recallWithScore results, contentId={}, total={}", matchContent.getSourceId(), result.getTotal());
|
|
|
|
|
+ // 截取前三条
|
|
|
|
|
+ if (result.getItems().size() > 3) {
|
|
|
|
|
+ result.setItems(result.getItems().subList(0, 3));
|
|
|
|
|
+ }
|
|
|
int savedCount = 0;
|
|
int savedCount = 0;
|
|
|
for (RecallVideoScoreVO.ScoredVideoItem item : result.getItems()) {
|
|
for (RecallVideoScoreVO.ScoredVideoItem item : result.getItems()) {
|
|
|
if (item.getVideoId() == null) {
|
|
if (item.getVideoId() == null) {
|