classes/ezfindelevateconfiguration.php
public static function getRuntimeQueryParameters( $forceElevation = false, $enableElevation = true, $searchText = '' )
    {
        $retArray = array( 'forceElevation'  => 'false',
                           'enableElevation' => 'true' );

        if ( $enableElevation === false or $searchText == '' )
        {
            $retArray['enableElevation'] = 'false';
            return $retArray;
        }

        if ( $forceElevation === true )
        {
            $retArray['forceElevation'] = 'true';
        }

        return $retArray;
    }
public static function getRuntimeQueryParameters( $forceElevation = false, $enableElevation = true, $searchText = '' )
    {
        $retArray = array( 'forceElevation'  => 'false',
                           'enableElevation' => 'true' );

        if ( $enableElevation === false or $searchText == '' )
        {
            $retArray['enableElevation'] = 'false';
            return $retArray;
        }

        if ( $forceElevation === true )
        {
            $retArray['forceElevation'] = 'true';
        }

        return $retArray;
    }
public static function getRuntimeQueryParameters ( $ forceElevation = false , $ enableElevation = true , $ searchText = '' ) { $ retArray = array ( 'forceElevation' => 'false' , 'enableElevation' => 'true' ) ; if ( $ enableElevation === false or $ searchText == '' ) { $ retArray [ 'enableElevation' ] = 'false' ; return $ retArray ; } if ( $ forceElevation === true ) { $ retArray [ 'forceElevation' ] = 'true' ; } return $ retArray ; }
Generates a well-formed array of elevate-related query parameters.

@param boolean $forceElevation Whether elevation should be forced or not. Parameter supported at runtime from Solr@rev:735117
Should be used when a sort array other than the default one ( 'score desc' ) is passed in the query parameters,
if one wants the elevate configuration to be actually taken into account.

@param boolean $enableElevation Whether the Elevate functionnality should be used or not. Defaults to 'true'.
@param string $searchText Workaround for an issue in Solr's QueryElevationComponent : when the search string is empty, Solr throws
an Exception and stops the request.

@return array The well-formed query parameter regarding the elevate functionnality. Example :
<code>
array( 'forceElevation' => 'true',
'enableElevation' => 'true' )
</code>
Generates a well - formed array of elevate - related query parameters .