diff --git classes/ezsolrbase.php classes/ezsolrbase.php index 3b341af..c1da35d 100644 --- classes/ezsolrbase.php +++ classes/ezsolrbase.php @@ -413,14 +413,17 @@ class eZSolrBase * @params array $params Raw query parameters * * - * @note This method is a simple wrapper around rawSearch in order to easily - * ignore elevate when using multicore * @return bool * @see rawSearch() */ function pushElevateConfiguration( $params ) { - return $this->rawSearch( $params ); + $result = $this->rawSearch( $params ); + if ($this->SolrINI->hasVariable('Elevate', 'ForceCommitOnSync') && $this->SolrINI->variable('Elevate', 'ForceCommitOnSync') == 'true') + { + $this->commit(); + } + return $result; } /** diff --git settings/solr.ini settings/solr.ini index 6f6ee9a..8576e25 100644 --- settings/solr.ini +++ settings/solr.ini @@ -45,3 +45,12 @@ Shards[] #Shards[nor-NO]=http://localhost:8983/solr/nor-NO #Shards[myforeignindex]=http://myotherhost:8983/solr + + +[Elevate] +# Elevate or ezfind solr request handler: +# Force commit on sync, which ensures if fired aganst a master solr core, that the +# slave(s) are also synced if commits are sync points (should be so) +# Might seem to be a bit odd to put this setting here, but the low level elevate sync is actually a method of the eZSolrBase class +# +ForceCommitOnSync=false