jenkins-bot has submitted this change and it was merged.
Change subject: Suggester index should index only NS_MAIN for now.
......................................................................
Suggester index should index only NS_MAIN for now.
Change-Id: I59e21b5f0c234aa64aa84a99c6a272f6737df45f
---
M maintenance/updateSuggesterIndex.php
1 file changed, 5 insertions(+), 2 deletions(-)
Approvals:
Smalyshev: Looks good to me, approved
Cindy-the-browser-test-bot: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/maintenance/updateSuggesterIndex.php
b/maintenance/updateSuggesterIndex.php
index b690112..c36aa24 100644
--- a/maintenance/updateSuggesterIndex.php
+++ b/maintenance/updateSuggesterIndex.php
@@ -238,8 +238,11 @@
$query->setQuery(
new Elastica\Query\Filtered(
- new \Elastica\Query\MatchAll(),
- new Elastica\Filter\Type(
Connection::PAGE_TYPE_NAME )
+ new Elastica\Query\MatchAll(),
+ new Elastica\Filter\BoolAnd( array(
+ new Elastica\Filter\Type(
Connection::PAGE_TYPE_NAME ),
+ new Elastica\Filter\Term( array(
"namespace" => NS_MAIN ) )
+ ) )
)
);
--
To view, visit https://gerrit.wikimedia.org/r/258133
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I59e21b5f0c234aa64aa84a99c6a272f6737df45f
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: DCausse <[email protected]>
Gerrit-Reviewer: Cindy-the-browser-test-bot <[email protected]>
Gerrit-Reviewer: DCausse <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Manybubbles <[email protected]>
Gerrit-Reviewer: Smalyshev <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits