|
@@ -26,19 +26,23 @@ public class Global24hHotCandidate extends IndexCandidateQueue {
|
|
Map<String, Candidate> simplifiedCandidates = new ConcurrentHashMap<>();
|
|
Map<String, Candidate> simplifiedCandidates = new ConcurrentHashMap<>();
|
|
|
|
|
|
BigDecimal recallNumBigDecimal = BigDecimal.valueOf(recallNum);
|
|
BigDecimal recallNumBigDecimal = BigDecimal.valueOf(recallNum);
|
|
- int rosNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.6)).intValue();
|
|
|
|
- int rovNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.4)).intValue();
|
|
|
|
|
|
+ int combinationNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.7)).intValue();
|
|
|
|
+ int rosNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.2)).intValue();
|
|
|
|
+ int rovNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.1)).intValue();
|
|
|
|
|
|
|
|
|
|
QueueName queueName = new QueueName(ItemType, "rov")
|
|
QueueName queueName = new QueueName(ItemType, "rov")
|
|
.addMatch("type", "global24h");
|
|
.addMatch("type", "global24h");
|
|
currRecall += addCandidateKey(simplifiedCandidates, queueName, rovNum, getStrategyQueueInfo().getQueueName());
|
|
currRecall += addCandidateKey(simplifiedCandidates, queueName, rovNum, getStrategyQueueInfo().getQueueName());
|
|
|
|
|
|
-
|
|
|
|
queueName = new QueueName(ItemType, "short_ros")
|
|
queueName = new QueueName(ItemType, "short_ros")
|
|
.addMatch("type", "global24h");
|
|
.addMatch("type", "global24h");
|
|
currRecall += addCandidateKey(simplifiedCandidates, queueName, rosNum, getStrategyQueueInfo().getQueueName());
|
|
currRecall += addCandidateKey(simplifiedCandidates, queueName, rosNum, getStrategyQueueInfo().getQueueName());
|
|
|
|
|
|
|
|
+ queueName = new QueueName(ItemType, "combination")
|
|
|
|
+ .addMatch("type", "global24h");
|
|
|
|
+ currRecall += addCandidateKey(simplifiedCandidates, queueName, combinationNum, getStrategyQueueInfo().getQueueName());
|
|
|
|
+
|
|
candidates.putAll(simplifiedCandidates);
|
|
candidates.putAll(simplifiedCandidates);
|
|
return currRecall;
|
|
return currRecall;
|
|
|
|
|