Manybubbles has uploaded a new change for review.
https://gerrit.wikimedia.org/r/159379
Change subject: Fix override allowing all fields in rescore
......................................................................
Fix override allowing all fields in rescore
It was referencing a non-existent variable. Now it isn't.
Change-Id: I4a32ddbf6e9ecacf9c90c566edbd15f05f493f31
(cherry picked from commit c66eb99e62684668a414350d8f5634fc4f4567c7)
---
M includes/Hooks.php
M includes/Searcher.php
2 files changed, 4 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch
refs/changes/79/159379/1
diff --git a/includes/Hooks.php b/includes/Hooks.php
index d2e39c9..6023f69 100644
--- a/includes/Hooks.php
+++ b/includes/Hooks.php
@@ -131,7 +131,7 @@
if ( $useAllFields !== null ) {
if ( $useAllFields === 'yes' ) {
$wgCirrusSearchAllFields[ 'use' ] =
true;
- } elseif( $useAllFields = 'no' ) {
+ } elseif( $useAllFields === 'no' ) {
$wgCirrusSearchAllFields[ 'use' ] =
false;
}
}
@@ -139,7 +139,7 @@
if ( $useAllFieldsForRescore !== null ) {
if ( $useAllFieldsForRescore === 'yes' ) {
$wgCirrusSearchAllFieldsForRescore =
true;
- } elseif( $useAllFieldsForRescore = 'no' ) {
+ } elseif( $useAllFieldsForRescore === 'no' ) {
$wgCirrusSearchAllFieldsForRescore =
false;
}
}
diff --git a/includes/Searcher.php b/includes/Searcher.php
index 065177b..bc1bbfd 100644
--- a/includes/Searcher.php
+++ b/includes/Searcher.php
@@ -323,7 +323,8 @@
$wgCirrusSearchStemmedWeight,
$wgCirrusSearchPhraseSlop,
$wgCirrusSearchBoostLinks,
- $wgCirrusSearchAllFields;
+ $wgCirrusSearchAllFields,
+ $wgCirrusSearchAllFieldsForRescore;
$profiler = new ProfileSection( __METHOD__ );
--
To view, visit https://gerrit.wikimedia.org/r/159379
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4a32ddbf6e9ecacf9c90c566edbd15f05f493f31
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: wmf/1.24wmf20
Gerrit-Owner: Manybubbles <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits