コード例 #1
0
 /**
  * Sets this mapping to the server
  */
 public function apply()
 {
     $content = json_encode($this->asArray());
     $response = $this->type->request('PUT', '/_mapping', array(), $content);
     return $response;
 }
コード例 #2
0
 /**
  * @param string $method
  * @param string $path
  * @param array $arguments
  * @param string $content
  *
  * @return \Flowpack\ElasticSearch\Transfer\Response
  */
 protected function request($method, $path = null, $arguments = array(), $content = null)
 {
     return $this->type->request($method, $path, $arguments, $content);
 }