Manybubbles has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/82856


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch 
refs/changes/56/82856/1

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: newchange
Gerrit-Change-Id: I8a9d88addad12276712db97830a60033b49773de
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <[email protected]>

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

Reply via email to