DCausse has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/342495 )

Change subject: Make incoming link counting compatible with 5.x
......................................................................

Make incoming link counting compatible with 5.x

Update incoming link counting job with the 5.x code. This is also
backwards compatible with 2.x. Without it jobs enqueued by the
saneitizer will fail link counting.

Change-Id: I4cf56ced43f9283eecb38359b88797b103752983
---
M includes/BuildDocument/RedirectsAndIncomingLinks.php
1 file changed, 1 insertion(+), 4 deletions(-)


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

diff --git a/includes/BuildDocument/RedirectsAndIncomingLinks.php 
b/includes/BuildDocument/RedirectsAndIncomingLinks.php
index 5008a2f..91ea607 100644
--- a/includes/BuildDocument/RedirectsAndIncomingLinks.php
+++ b/includes/BuildDocument/RedirectsAndIncomingLinks.php
@@ -182,12 +182,9 @@
                $search = new \Elastica\Search( $type->getIndex()->getClient() 
);
                $search->addIndex( $type->getIndex() );
                $search->addType( $type );
-               $search->setOption(
-                       \Elastica\Search::OPTION_SEARCH_TYPE,
-                       \Elastica\Search::OPTION_SEARCH_TYPE_COUNT
-               );
                $search->setQuery( $bool );
                $search->getQuery()->addParam( 'stats', 'link_count' );
+               $search->getQuery()->setSize( 0 );
 
                return $search;
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/342495
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4cf56ced43f9283eecb38359b88797b103752983
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: wmf/1.29.0-wmf.15
Gerrit-Owner: DCausse <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to