Manybubbles has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/98526


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch 
refs/changes/26/98526/1

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: newchange
Gerrit-Change-Id: If3a348643a20d1923e91bf74abbf8f51aad2aef0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <never...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to