(assistant) Clean up similar websites' results

This commit is contained in:
Viktor Lofgren 2023-12-22 14:07:01 +01:00
parent dc773c5c20
commit 7b40c0bbee

View File

@ -258,11 +258,16 @@ public class SimilarDomainsService {
// Remove domains that have a relatively high likelihood of being dead links
// or not very interesting
if (!(domainResult.indexed() && domainResult.active())
&& domainResult.relatedness() < 50)
&& domainResult.relatedness() <= 50)
{
return true;
}
// Remove domains that are not very similar if there is no mutual link
if (domainResult.linkType() == SimilarDomain.LinkType.NONE
&& domainResult.relatedness() <= 25)
return true;
return false;
}