lib/Elastica/Index/Settings.php
public function request(array $data = [], string $method = Request::GET): Response
    {
        $path = '_settings';

        if (!empty($data)) {
            $data = ['index' => $data];
        }

        return $this->getIndex()->request($path, $method, $data);
    }
public function request(array $data = [], string $method = Request::GET): Response
    {
        $path = '_settings';

        if (!empty($data)) {
            $data = ['index' => $data];
        }

        return $this->getIndex()->request($path, $method, $data);
    }
public function request ( array $ data = [ ] , string $ method = Request :: GET ) : Response { $ path = '_settings' ; if ( ! empty ( $ data ) ) { $ data = [ 'index' => $ data ] ; } return $ this -> getIndex ( ) -> request ( $ path , $ method , $ data ) ; }
Updates the given settings for the index.

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

@param array  $data   OPTIONAL Data array
@param string $method OPTIONAL Transfer method (default = \Elastica\Request::GET)

@return Response Response object
Updates the given settings for the index .