lib/Elastica/Query/Fuzzy.php
public function setFieldOption(string $option, $value): self
    {
        //Retrieve the single existing field for alteration.
        $params = $this->getParams();
        if (\count($params) < 1) {
            throw new InvalidException('No field has been set');
        }
        $key = \key($params);
        $params[$key][$option] = $value;

        return $this->setParam($key, $params[$key]);
    }
public function setFieldOption(string $option, $value): self
    {
        //Retrieve the single existing field for alteration.
        $params = $this->getParams();
        if (\count($params) < 1) {
            throw new InvalidException('No field has been set');
        }
        $key = \key($params);
        $params[$key][$option] = $value;

        return $this->setParam($key, $params[$key]);
    }
public function setFieldOption ( string $ option , $ value ) : self { //Retrieve the single existing field for alteration. $ params = $ this -> getParams ( ) ; if ( \ count ( $ params ) < 1 ) { throw new InvalidException ( 'No field has been set' ) ; } $ key = \ key ( $ params ) ; $ params [ $ key ] [ $ option ] = $ value ; return $ this -> setParam ( $ key , $ params [ $ key ] ) ; }
Set optional parameters on the existing query.

@param string $option option name
@param mixed  $value  Value of the parameter

@return $this
Set optional parameters on the existing query .