if ( $http->hasPostVariable( 'ezfind-searchelevateconfigurations-fuzzy' ) ) $fuzzyFilter = true; elseif ( $Params['FuzzyFilter'] !== false ) $fuzzyFilter = true; // Pass the fuzzy filter on to the template, search will occur there. if ( $fuzzyFilter ) $viewParameters = array_merge( $viewParameters, array( 'fuzzy_filter' => $fuzzyFilter ) ); } // Synchronise Elevate configuration with Solr : else if ( $http->hasPostVariable( 'ezfind-elevate-synchronise' ) ) { $solr = new eZSolr(); //if ( eZFindElevateConfiguration::synchronizeWithSolr() ) if ( $solr->pushElevateConfiguration() ) { $feedback['synchronisation_ok'] = true; } else { $feedback['synchronisation_fail'] = true; //TODO: aggregate error messages from multiple shards in eZSolr->pushElevateConfiguration() //then change here accordingly $feedback['synchronisation_fail_message'] = eZFindElevateConfiguration::$lastSynchronizationError; } } $viewParameters = array_merge( $viewParameters, array( 'offset' => ( isset( $Params['Offset'] ) and is_numeric( $Params['Offset'] ) ) ? $Params['Offset'] : 0 ) ); $tpl->setVariable( 'view_parameters', $viewParameters ); $tpl->setVariable( 'feedback', $feedback );