|
|
|
@ -1078,6 +1078,14 @@ public final class SearchEvent {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// check modifier constraint (language)
|
|
|
|
|
// TODO: : page.language() never null but defaults to "en" (may cause false drop of result)
|
|
|
|
|
if (this.query.modifier.language != null && !this.query.modifier.language.equals(ASCII.String(page.language()))) {
|
|
|
|
|
if (log.isFine()) log.fine("dropped RWI: language constraint = " + this.query.modifier.language);
|
|
|
|
|
if (page.word().local()) this.local_rwi_available.decrementAndGet(); else this.remote_rwi_available.decrementAndGet();
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Check for blacklist
|
|
|
|
|
if (Switchboard.urlBlacklist.isListed(BlacklistType.SEARCH, page.url())) {
|
|
|
|
|
if (log.isFine()) log.fine("dropped RWI: url is blacklisted in url blacklist");
|
|
|
|
|