jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/368776 )

Change subject: [cirrus] Tune ordering of crossproject search results on enwiki
......................................................................


[cirrus] Tune ordering of crossproject search results on enwiki

Use 'wmf_enwiki' profile to make:
- wiktionary always first
- wikibooks always last
- use recall on others

Bug: T171803
Change-Id: I4bc88c57d3b4dd75ad420b3826a9877ff5340ff9
Depends-On: I9618b9e9bee51d91a9ec931725abcd39eb730b39
---
M wmf-config/CirrusSearch-common.php
M wmf-config/InitialiseSettings.php
2 files changed, 9 insertions(+), 2 deletions(-)

Approvals:
  Thcipriani: Looks good to me, approved
  EBernhardson: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/wmf-config/CirrusSearch-common.php 
b/wmf-config/CirrusSearch-common.php
index bc38665..3b8d890 100644
--- a/wmf-config/CirrusSearch-common.php
+++ b/wmf-config/CirrusSearch-common.php
@@ -233,8 +233,9 @@
 $wgCirrusSearchNewCrossProjectPage = true;
 // Display X results per crossproject
 $wgCirrusSearchNumCrossProjectSearchResults = 1;
-// Order snippets by recall (wiki taht return more results first)
-$wgCirrusSearchCrossProjectOrder = 'recall';
+// Control ordering of crossproject searchresults blocks
+// Must be a valid profile defined in 
$wgCirrusSearchCrossProjectBlockScoreProfiles
+$wgCirrusSearchCrossProjectOrder = $wmgCirrusSearchCrossProjectOrder;
 
 // Override sister search profiles for specific projects
 $wgCirrusSearchCrossProjectProfiles = [
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index fdfcccf..239ce5c 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -18135,6 +18135,12 @@
        'itwikivoyage' => true,
 ],
 
+// Tune crossproject ordering
+'wmgCirrusSearchCrossProjectOrder' => [
+       'default' => 'recall',
+       'enwiki' => 'wmf_enwiki', // T171803: 'wikt' always first, 'b' always 
last, others ordered by recall
+],
+
 // Define list of projects to blacklist from CrossProject search
 // (only effective if SiteMatrix implementation is being used)
 'wmgCirrusSearchCrossProjectSearchBlackList' => [

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4bc88c57d3b4dd75ad420b3826a9877ff5340ff9
Gerrit-PatchSet: 4
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: DCausse <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Thcipriani <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to