mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(assistant) Clean up the site info related domains view by filtering viable domains
This commit is contained in:
parent
34d4834ff6
commit
e13fa25e11
@ -251,7 +251,7 @@ public class SimilarDomainsService {
|
|||||||
return domains;
|
return domains;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean shouldRemove(SimilarDomain domainResult) {
|
private boolean shouldRemove(SimilarDomain domainResult) {
|
||||||
if (domainResult.url().domain.toString().length() > 32)
|
if (domainResult.url().domain.toString().length() > 32)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@ -259,7 +259,7 @@ public class SimilarDomainsService {
|
|||||||
// or not very interesting
|
// or not very interesting
|
||||||
if (!domainResult.indexed()
|
if (!domainResult.indexed()
|
||||||
&& !domainResult.active()
|
&& !domainResult.active()
|
||||||
&& domainResult.relatedness() < 0.5)
|
&& domainResult.relatedness() < 50)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user