Elastica\Index\Settings::request PHP Method

request() public method

With elasticsearch 0.16 the following settings are supported - index.term_index_interval - index.term_index_divisor - index.translog.flush_threshold_ops - index.translog.flush_threshold_size - index.translog.flush_threshold_period - index.refresh_interval - index.merge.policy - index.auto_expand_replicas
public request ( array $data = [], string $method = Request::GET ) : Response
$data array OPTIONAL Data array
$method string OPTIONAL Transfer method (default = \Elastica\Request::GET)
return Elastica\Response Response object
    public function request(array $data = [], $method = Request::GET)
    {
        $path = '_settings';
        if (!empty($data)) {
            $data = ['index' => $data];
        }
        return $this->getIndex()->request($path, $method, $data);
    }