public function update($indexName, $type, $id, array $data)
	{
		$index = $this->elasticSearcher->indicesManager()->getRegistered($indexName);

		$params = [
			'index' => $index->getInternalName(),
			'type'  => $type,
			'id'    => $id,
			'body'  => ['doc' => $data]
		];

		return $this->elasticSearcher->getClient()->update($params);
	}
public function update($indexName, $type, $id, array $data)
	{
		$index = $this->elasticSearcher->indicesManager()->getRegistered($indexName);

		$params = [
			'index' => $index->getInternalName(),
			'type'  => $type,
			'id'    => $id,
			'body'  => ['doc' => $data]
		];

		return $this->elasticSearcher->getClient()->update($params);
	}
public function update ( $ indexName , $ type , $ id , array $ data ) { $ index = $ this -> elasticSearcher -> indicesManager ( ) -> getRegistered ( $ indexName ) ; $ params = [ 'index' => $ index -> getInternalName ( ) , 'type' => $ type , 'id' => $ id , 'body' => [ 'doc' => $ data ] ] ; return $ this -> elasticSearcher -> getClient ( ) -> update ( $ params ) ; }
Partial updating of an existing document.

@return array

@param string $indexName
@param string $type
@param string $id
@param array  $data
Partial updating of an existing document .