DCausse has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/368776 )
Change subject: Tune ordering of crossproject search results on enwiki
......................................................................
Tune ordering of crossproject search results on enwiki
Use 'wmf_enwiki' profile to make:
- wiktionay always first
- wikiboks 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(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/76/368776/1
diff --git a/wmf-config/CirrusSearch-common.php
b/wmf-config/CirrusSearch-common.php
index b440d43..77434a9 100644
--- a/wmf-config/CirrusSearch-common.php
+++ b/wmf-config/CirrusSearch-common.php
@@ -238,8 +238,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 fb2523b..0202d3b 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -18036,6 +18036,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: newchange
Gerrit-Change-Id: I4bc88c57d3b4dd75ad420b3826a9877ff5340ff9
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: DCausse <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits