mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(valuation) Tweaking penalties a bit
This commit is contained in:
parent
1694b4d6ef
commit
0e970b8037
@ -160,6 +160,9 @@ public class ResultValuator {
|
|||||||
if (DocumentMetadata.hasFlags(featureFlags, HtmlFeature.AFFILIATE_LINK.getFeatureBit()))
|
if (DocumentMetadata.hasFlags(featureFlags, HtmlFeature.AFFILIATE_LINK.getFeatureBit()))
|
||||||
penalty += 5.0 * largeSiteFactor;
|
penalty += 5.0 * largeSiteFactor;
|
||||||
|
|
||||||
|
if (DocumentMetadata.hasFlags(featureFlags, HtmlFeature.COOKIES.getFeatureBit()))
|
||||||
|
penalty += 2.5 * largeSiteFactor;
|
||||||
|
|
||||||
if (DocumentMetadata.hasFlags(featureFlags, HtmlFeature.TRACKING.getFeatureBit()))
|
if (DocumentMetadata.hasFlags(featureFlags, HtmlFeature.TRACKING.getFeatureBit()))
|
||||||
penalty += 2.5 * largeSiteFactor;
|
penalty += 2.5 * largeSiteFactor;
|
||||||
|
|
||||||
@ -221,7 +224,7 @@ public class ResultValuator {
|
|||||||
if (value < 0)
|
if (value < 0)
|
||||||
value = 0;
|
value = 0;
|
||||||
|
|
||||||
return Math.sqrt((1.0 + scalingFactor + penalty) / (1.0 + value));
|
return Math.sqrt((1.0 + scalingFactor + 10 * penalty) / (1.0 + value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user