lib/Elastica/Type/Mapping.php
public function send(array $query = []): Response
    {
        $endpoint = new Put();
        $endpoint->setBody($this->toArray());
        $endpoint->setParams($query);

        return $this->getType()->requestEndpoint($endpoint);
    }
public function send(array $query = []): Response
    {
        $endpoint = new Put();
        $endpoint->setBody($this->toArray());
        $endpoint->setParams($query);

        return $this->getType()->requestEndpoint($endpoint);
    }
public function send ( array $ query = [ ] ) : Response { $ endpoint = new Put ( ) ; $ endpoint -> setBody ( $ this -> toArray ( ) ) ; $ endpoint -> setParams ( $ query ) ; return $ this -> getType ( ) -> requestEndpoint ( $ endpoint ) ; }
Submits the mapping and sends it to the server.

@param array $query Query string parameters to send with mapping

@return Response Response object
Submits the mapping and sends it to the server .