|
|
@ -243,10 +243,13 @@ public final class plasmaSearchEvent {
|
|
|
|
cleanEvent = i.next();
|
|
|
|
cleanEvent = i.next();
|
|
|
|
if ((all) || (cleanEvent.eventTime + eventLifetime < System.currentTimeMillis())) {
|
|
|
|
if ((all) || (cleanEvent.eventTime + eventLifetime < System.currentTimeMillis())) {
|
|
|
|
// execute deletion of failed words
|
|
|
|
// execute deletion of failed words
|
|
|
|
|
|
|
|
int rw = cleanEvent.failedURLs.size();
|
|
|
|
|
|
|
|
if (rw > 0) {
|
|
|
|
final Set<String> removeWords = cleanEvent.query.queryHashes;
|
|
|
|
final Set<String> removeWords = cleanEvent.query.queryHashes;
|
|
|
|
removeWords.addAll(cleanEvent.query.excludeHashes);
|
|
|
|
removeWords.addAll(cleanEvent.query.excludeHashes);
|
|
|
|
cleanEvent.wordIndex.removeEntriesMultiple(removeWords, cleanEvent.failedURLs.keySet());
|
|
|
|
cleanEvent.wordIndex.removeEntriesMultiple(removeWords, cleanEvent.failedURLs.keySet());
|
|
|
|
serverLog.logInfo("SearchEvents", "cleaning up event " + cleanEvent.query.id(true) + ", removed " + cleanEvent.failedURLs.size() + " URL references on " + removeWords.size() + " words");
|
|
|
|
serverLog.logInfo("SearchEvents", "cleaning up event " + cleanEvent.query.id(true) + ", removed " + rw + " URL references on " + removeWords.size() + " words");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// remove the event
|
|
|
|
// remove the event
|
|
|
|
i.remove();
|
|
|
|
i.remove();
|
|
|
|