lib/Elastica/Query/Match.php
public function setFieldParam(string $field, string $key, string $value): self
    {
        if (!isset($this->_params[$field])) {
            $this->_params[$field] = [];
        }

        $this->_params[$field][$key] = $value;

        return $this;
    }
public function setFieldParam(string $field, string $key, string $value): self
    {
        if (!isset($this->_params[$field])) {
            $this->_params[$field] = [];
        }

        $this->_params[$field][$key] = $value;

        return $this;
    }
public function setFieldParam ( string $ field , string $ key , string $ value ) : self { if ( ! isset ( $ this -> _params [ $ field ] ) ) { $ this -> _params [ $ field ] = [ ] ; } $ this -> _params [ $ field ] [ $ key ] = $ value ; return $ this ; }
Sets a param for the given field.

@param string $field
@param string $key
@param string $value

@return $this
Sets a param for the given field .