public function testBulk() { $client = new Elastica_Client(); $params = array(array('index' => array('_index' => 'test', '_type' => 'user', '_id' => '1')), array('user' => array('name' => 'hans')), array('index' => array('_index' => 'test', '_type' => 'user', '_id' => '2')), array('user' => array('name' => 'peter'))); $client->bulk($params); }