jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/386464 )
Change subject: Add negative weight to disambig entities
......................................................................
Add negative weight to disambig entities
This will demote them in prefix match ranking.
Bug: T148411
Change-Id: I9543452589c7ee11c4f6bf874c1c97001af65470
---
M wmf-config/Wikibase-production.php
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/wmf-config/Wikibase-production.php
b/wmf-config/Wikibase-production.php
index 3b531f4..e60077b 100644
--- a/wmf-config/Wikibase-production.php
+++ b/wmf-config/Wikibase-production.php
@@ -135,6 +135,9 @@
$wgWBQualityConstraintsSparqlEndpoint =
$wgWBRepoSettings['sparqlEndpoint'];
$wgWBQualityConstraintsSparqlMaxMillis = 5000; // limit SPARQL
queries to just 5 seconds for now
$wgWBQualityConstraintsTypeCheckMaxEntities = 10; // only check
few entities in PHP => fall back to SPARQL very quickly
+ // T148411: Use profile that demotes disambigs by default
+
$wgWBRepoSettings['entitySearch']['defaultPrefixRescoreProfile'] =
'wikibase_prefix_boost';
+ $wgWBRepoSettings['entitySearch']['statementBoost'] = [
'P31=Q4167410' => '-10' ];
}
if ( $wgDBname === 'wikidatawiki' ) {
--
To view, visit https://gerrit.wikimedia.org/r/386464
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9543452589c7ee11c4f6bf874c1c97001af65470
Gerrit-PatchSet: 3
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Smalyshev <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: DCausse <[email protected]>
Gerrit-Reviewer: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: Urbanecm <[email protected]>
Gerrit-Reviewer: Zoranzoki21 <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits