<?php require_once '../vendor/autoload.php'; use Elastica\Client; use Elastica\Type\Mapping; use Elastica\Bulk; $client = new Client(); $index = $client->getIndex('natalie_data'); $index->create(array(), true);//2引数のboolは同名Indexを削除して再作成するかどうか // http://elastica.io/api/classes/Elastica.Index.html $type = $index->getType('comic_news'); // mappingを指定する $mapping = new Mapping($type, array( 'title' =>