jenkins-bot has submitted this change and it was merged. Change subject: Restore log10 boost for link counts ......................................................................
Restore log10 boost for link counts In a recent refactor this became linear which is wrong. Will devise some kind of regression test for this later. Change-Id: If3a348643a20d1923e91bf74abbf8f51aad2aef0 --- M includes/CirrusSearchSearcher.php 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Chad: Looks good to me, approved jenkins-bot: Verified diff --git a/includes/CirrusSearchSearcher.php b/includes/CirrusSearchSearcher.php index ac2bfd2..39ae283 100644 --- a/includes/CirrusSearchSearcher.php +++ b/includes/CirrusSearchSearcher.php @@ -709,7 +709,7 @@ // MVEL code for incoming links boost $incomingLinks = "(doc['incoming_links'].empty ? 0 : doc['incoming_links'].value)"; $incomingRedirectLinks = "(doc['incoming_redirect_links'].empty ? 0 : doc['incoming_redirect_links'].value)"; - $scoreBoostMvel = " * ($incomingLinks + $incomingRedirectLinks + 2)"; + $scoreBoostMvel = " * log10($incomingLinks + $incomingRedirectLinks + 2)"; // MVEL code for last update time decay $lastUpdateDecayMvel = ''; if ( $this->preferRecentDecayPortion > 0 && $this->preferRecentHalfLife > 0 ) { -- To view, visit https://gerrit.wikimedia.org/r/98526 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: If3a348643a20d1923e91bf74abbf8f51aad2aef0 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CirrusSearch Gerrit-Branch: master Gerrit-Owner: Manybubbles <never...@wikimedia.org> Gerrit-Reviewer: Chad <ch...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits