Chad has uploaded a new change for review.

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

Change subject: Remove score functionality from Cirrus, similar to core's 
I00acaaba
......................................................................

Remove score functionality from Cirrus, similar to core's I00acaaba

Change-Id: Ied61651045c22635114c4ac4994a7d9651ba1d9f
---
M CirrusSearch.php
M includes/Search/Result.php
2 files changed, 0 insertions(+), 11 deletions(-)


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

diff --git a/CirrusSearch.php b/CirrusSearch.php
index b2a0773..ea99039 100644
--- a/CirrusSearch.php
+++ b/CirrusSearch.php
@@ -309,9 +309,6 @@
 // their primary search engine.
 $wgCirrusSearchEnablePref = false;
 
-// Should Cirrus show the score?
-$wgCirrusSearchShowScore = false;
-
 // CirrusSearch interwiki searching
 // Keys are the interwiki prefix, values are the index to search
 // Results are cached.
diff --git a/includes/Search/Result.php b/includes/Search/Result.php
index def3d51..7afa89d 100644
--- a/includes/Search/Result.php
+++ b/includes/Search/Result.php
@@ -90,10 +90,6 @@
                        $this->sectionSnippet = $this->escapeHighlightedText( 
$highlights[ 'heading' ][ 0 ] );
                        $this->sectionTitle = $this->findSectionTitle();
                }
-
-               if ( $wgCirrusSearchShowScore && $results->getMaxScore() ) {
-                       $this->score = $result->getScore() / 
$results->getMaxScore();
-               }
        }
 
        private function pickTextSnippet( $highlights ) {
@@ -261,10 +257,6 @@
 
        public function getByteSize() {
                return $this->byteSize;
-       }
-
-       public function getScore() {
-               return $this->score;
        }
 
        public function getTimestamp() {

-- 
To view, visit https://gerrit.wikimedia.org/r/152288
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ied61651045c22635114c4ac4994a7d9651ba1d9f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>

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

Reply via email to