jenkins-bot has submitted this change and it was merged.
Change subject: Sort highlighted text by score.
......................................................................
Sort highlighted text by score.
This should help with but won't solve Bug: 53529
Change-Id: I8a9d88addad12276712db97830a60033b49773de
---
M CirrusSearchSearcher.php
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Chad: Looks good to me, approved
jenkins-bot: Verified
diff --git a/CirrusSearchSearcher.php b/CirrusSearchSearcher.php
index 0aefbe2..5502136 100644
--- a/CirrusSearchSearcher.php
+++ b/CirrusSearchSearcher.php
@@ -154,6 +154,7 @@
$query->setHighlight( array(
'pre_tags' => array( self::HIGHLIGHT_PRE ),
'post_tags' => array( self::HIGHLIGHT_POST ),
+ 'order' => 'score',
'fields' => array(
'title' => array( 'number_of_fragments' => 0 ),
// Don't fragment the title - it is too small.
'text' => array( 'number_of_fragments' => 1 ),
--
To view, visit https://gerrit.wikimedia.org/r/82856
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I8a9d88addad12276712db97830a60033b49773de
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits