EBernhardson has submitted this change and it was merged. Change subject: Exclude extra answers from bing ......................................................................
Exclude extra answers from bing Bing includes extra answers, like the answer box, in addition to the main search results. Filters those out so we are only looking at primary search results. Change-Id: Id3b637a28ce81864b9acf8ada40bc6951cd63bd1 --- M src/RelevanceScoring/RelevanceScoringProvider.php 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: EBernhardson: Verified; Looks good to me, approved diff --git a/src/RelevanceScoring/RelevanceScoringProvider.php b/src/RelevanceScoring/RelevanceScoringProvider.php index e96fa96..715c870 100644 --- a/src/RelevanceScoring/RelevanceScoringProvider.php +++ b/src/RelevanceScoring/RelevanceScoringProvider.php @@ -88,7 +88,7 @@ 'https://www.bing.com/search', [ 'is_valid' => '#b_results', - 'results' => '#b_results .b_algo', + 'results' => '#b_results > .b_algo', 'url' => 'h2 a', 'snippet' => '.b_caption p', ], -- To view, visit https://gerrit.wikimedia.org/r/287666 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id3b637a28ce81864b9acf8ada40bc6951cd63bd1 Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/discovery/discernatron Gerrit-Branch: master Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org> Gerrit-Reviewer: EBernhardson <ebernhard...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits