public function callKeywords($index, $text, $fetchStatistic, &$params)
    {
        $indexParamName = self::PARAM_PREFIX . count($params);
        $params[$indexParamName] = $index;
        $textParamName = self::PARAM_PREFIX . count($params);
        $params[$textParamName] = $text;

        return 'CALL KEYWORDS(' . $textParamName . ', ' . $indexParamName . ($fetchStatistic ? ', 1' : '') . ')';
    }
public function callKeywords($index, $text, $fetchStatistic, &$params)
    {
        $indexParamName = self::PARAM_PREFIX . count($params);
        $params[$indexParamName] = $index;
        $textParamName = self::PARAM_PREFIX . count($params);
        $params[$textParamName] = $text;

        return 'CALL KEYWORDS(' . $textParamName . ', ' . $indexParamName . ($fetchStatistic ? ', 1' : '') . ')';
    }
public function callKeywords ( $ index , $ text , $ fetchStatistic , & $ params ) { $ indexParamName = self :: PARAM_PREFIX . count ( $ params ) ; $ params [ $ indexParamName ] = $ index ; $ textParamName = self :: PARAM_PREFIX . count ( $ params ) ; $ params [ $ textParamName ] = $ text ; return 'CALL KEYWORDS(' . $ textParamName . ', ' . $ indexParamName . ( $ fetchStatistic ? ', 1' : '' ) . ')' ; }
Builds a SQL statement for returning tokenized and normalized forms of the keywords, and,
optionally, keyword statistics.
@param string $index the name of the index from which to take the text processing settings
@param string $text the text to break down to keywords.
@param bool $fetchStatistic whether to return document and hit occurrence statistics
@param array $params the binding parameters that will be modified by this method
so that they can be bound to the Sphinx command later.
@return string the SQL statement for call keywords.
Builds a SQL statement for returning tokenized and normalized forms of the keywords and optionally keyword statistics .