public function createIndex($location, $index, $type, array $mapping) { $connection = new Search_Elastic_Connection($location); $connection->mapping($index, $type, $mapping); }