jenkins-bot has submitted this change and it was merged.
Change subject: Stop double counting redirects.
......................................................................
Stop double counting redirects.
Since redirects are already listed in the pagelinks table we don't need
to count them separately.
Change-Id: I6790d026a58fd1cb8fa3fe0a536777cb7f6a91ec
---
M CirrusSearchUpdater.php
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
Demon: Looks good to me, approved
jenkins-bot: Verified
diff --git a/CirrusSearchUpdater.php b/CirrusSearchUpdater.php
index 5555a4e..096457a 100644
--- a/CirrusSearchUpdater.php
+++ b/CirrusSearchUpdater.php
@@ -104,11 +104,10 @@
'title' => $redirect->getText()
);
}
- // Count redirects as links and links to those
redirects as links.
+ // Count links to redirects
// Note that we don't count redirect to redirects here
because that seems a bit much.
$redirectBacklinkCache = new Backlinkcache( $redirect );
$redirectLinks += $redirectBacklinkCache->getNumLinks(
'pagelinks' );
- $links += 1;
}
$doc = new \Elastica\Document( $revision->getPage(), array(
--
To view, visit https://gerrit.wikimedia.org/r/81115
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6790d026a58fd1cb8fa3fe0a536777cb7f6a91ec
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <[email protected]>
Gerrit-Reviewer: Demon <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits