From 06269e8203169dd680bc9b0350c5283aa02d88a8 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Fri, 4 Aug 2017 11:49:12 +1200 Subject: [PATCH 1/4] FIX Return a non-zero exit code when Solr_Configure has an exception --- code/solr/Solr.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/solr/Solr.php b/code/solr/Solr.php index fb460fa..9921d27 100644 --- a/code/solr/Solr.php +++ b/code/solr/Solr.php @@ -240,6 +240,10 @@ class Solr_Configure extends Solr_BuildTask ->error("Failure: " . $e->getMessage()); } } + + if (isset($e)) { + exit(1); + } } /** From e196de2ac2942a8b73e593134fc3d6166ad3a4b7 Mon Sep 17 00:00:00 2001 From: cpenny Date: Fri, 18 Aug 2017 12:47:30 +1200 Subject: [PATCH 2/4] Bugfix: Set SearchUpdateCommitJobProcessor::$dirty_indexes prop type to array, not bool --- code/search/processors/SearchUpdateCommitJobProcessor.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/search/processors/SearchUpdateCommitJobProcessor.php b/code/search/processors/SearchUpdateCommitJobProcessor.php index 35144a1..a75530a 100644 --- a/code/search/processors/SearchUpdateCommitJobProcessor.php +++ b/code/search/processors/SearchUpdateCommitJobProcessor.php @@ -8,7 +8,7 @@ class SearchUpdateCommitJobProcessor implements QueuedJob { /** * The QueuedJob queue to use when processing commits - * + * * @config * @var int */ @@ -47,12 +47,12 @@ class SearchUpdateCommitJobProcessor implements QueuedJob * * @var array */ - public static $dirty_indexes = true; + public static $dirty_indexes = array(); /** * If solrindex::commit has already been performed, but additional commits are necessary, * how long do we wait before attempting to touch the index again? - * + * * {@see http://stackoverflow.com/questions/7512945/how-to-fix-exceeded-limit-of-maxwarmingsearchers} * * @var int @@ -154,7 +154,7 @@ class SearchUpdateCommitJobProcessor implements QueuedJob return; } - + // If any commit has run, but some (or all) indexes are un-comitted, we must re-schedule this task. // This could occur if we completed a searchupdate job in a prior request, as well as in // the current request From 0fb7f0125e9f338589ef95661e68b3414062c290 Mon Sep 17 00:00:00 2001 From: cpenny Date: Fri, 13 Oct 2017 10:15:21 +1300 Subject: [PATCH 3/4] Remove PHP 5.3 tests as 5.3 is now unsupported. --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 303e94c..d968421 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,8 +14,6 @@ env: matrix: include: - - php: 5.3 - env: DB=PGSQL CORE_RELEASE=3.1 - php: 5.6 env: DB=MYSQL CORE_RELEASE=3.2 - php: 5.6 From e5f018267f493704d0752adc618b68e076ebd29d Mon Sep 17 00:00:00 2001 From: Glen Peek Date: Fri, 10 Nov 2017 14:01:24 +1300 Subject: [PATCH 4/4] Move SynonymFilterFactory to bottom of analyzer to include synonyms in search results --- conf/solr/3/templates/types.ss | 10 +++++----- conf/solr/4/templates/types.ss | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/conf/solr/3/templates/types.ss b/conf/solr/3/templates/types.ss index 135c8ac..f516654 100644 --- a/conf/solr/3/templates/types.ss +++ b/conf/solr/3/templates/types.ss @@ -140,7 +140,6 @@ - + @@ -166,11 +166,11 @@ - + @@ -180,7 +180,6 @@ - @@ -189,6 +188,7 @@ + @@ -214,7 +214,6 @@ - + @@ -240,7 +240,6 @@ - + diff --git a/conf/solr/4/templates/types.ss b/conf/solr/4/templates/types.ss index fe0f4fc..974ee2d 100644 --- a/conf/solr/4/templates/types.ss +++ b/conf/solr/4/templates/types.ss @@ -140,7 +140,6 @@ - + @@ -166,12 +166,12 @@ - + @@ -180,7 +180,6 @@ - @@ -189,6 +188,7 @@ + @@ -225,7 +225,6 @@ - + @@ -251,7 +251,6 @@ - +