{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2-elasticsearch/issues/95","repository_url":"https://api.github.com/repos/yiisoft/yii2-elasticsearch","labels_url":"https://api.github.com/repos/yiisoft/yii2-elasticsearch/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2-elasticsearch/issues/95/comments","events_url":"https://api.github.com/repos/yiisoft/yii2-elasticsearch/issues/95/events","html_url":"https://github.com/yiisoft/yii2-elasticsearch/issues/95","id":167522561,"number":95,"title":" Elasticsearch request failed with code 500.","user":{"login":"Aibric","id":2859844,"avatar_url":"https://avatars.githubusercontent.com/u/2859844?v=3","gravatar_id":"","url":"https://api.github.com/users/Aibric","html_url":"https://github.com/Aibric","followers_url":"https://api.github.com/users/Aibric/followers","following_url":"https://api.github.com/users/Aibric/following{/other_user}","gists_url":"https://api.github.com/users/Aibric/gists{/gist_id}","starred_url":"https://api.github.com/users/Aibric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aibric/subscriptions","organizations_url":"https://api.github.com/users/Aibric/orgs","repos_url":"https://api.github.com/users/Aibric/repos","events_url":"https://api.github.com/users/Aibric/events{/privacy}","received_events_url":"https://api.github.com/users/Aibric/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-26T05:14:10Z","updated_at":"2016-07-26T10:23:01Z","closed_at":null,"body":"Elasticsearch request failed with code 500.\r\n\r\n    /**\r\n     * @return array This model's mapping\r\n     */\r\n    public static function mapping()\r\n    {\r\n        return [\r\n            static::type() => [\r\n                \"_id\" => [\"path\" => \"id\", \"index\" => \"not_analyzed\", \"store\" => \"yes\"],\r\n                'properties' => [\r\n                    'author_name'    => ['type' => 'string'],\r\n                    'publisher_name' => ['type' => 'string'],\r\n                     'created_at'     => ['type' => 'long'],\r\n                    'updated_at'     => ['type' => 'long'],\r\n                     'status'         => ['type' => 'long'],\r\n                ]\r\n            ],\r\n        ];\r\n    }\r\n    /**\r\n     * Create this model's index\r\n     */\r\n    public static function createIndex()\r\n    {\r\n        $db = static::getDb();\r\n        $command = $db->createCommand();\r\n        $command->createIndex(static::index(), [\r\n            'settings' => [ /* ... */ ],\r\n            'mappings' => static::mapping(),\r\n            //'warmers' => [ /* ... */ ],\r\n            //'aliases' => [ /* ... */ ],\r\n            //'creation_date' => '...'\r\n        ]);\r\n    }\r\n    Model::createIndex();\r\n\r\nCreate this model's index\r\n\r\nElasticsearch request failed with code 500.\r\n\r\nError Info:\r\n\r\n    Array\r\n    (\r\n        [requestMethod] => PUT\r\n        [requestUrl] => http://127.0.0.1:9200/esgoods\r\n        [requestBody] => {\"settings\":[],\"mappings\":{\"esgoods\":{\"_id\":{\"path\":\"id\",\"index\":\"not_analyzed\",\"store\":\"yes\"},\"properties\":{\"goods_name\":{\"type\":\"string\"}}}}}\r\n        [responseCode] => 500\r\n        [responseHeaders] => Array\r\n            (\r\n                [content-type] => application/json; charset=UTF-8\r\n                [content-length] => 227\r\n            )\r\n        [responseBody] => Array\r\n            (\r\n                [error] => Array\r\n                    (\r\n                        [root_cause] => Array\r\n                            (\r\n                                [0] => Array\r\n                                    (\r\n                                        [type] => class_cast_exception\r\n                                        [reason] => java.util.ArrayList cannot be cast to java.util.Map\r\n                                    )\r\n\r\n                            )\r\n\r\n                        [type] => class_cast_exception\r\n                        [reason] => java.util.ArrayList cannot be cast to java.util.Map\r\n                    )\r\n\r\n                [status] => 500\r\n            )\r\n    )\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2-elasticsearch/issues/comments/235228705","html_url":"https://github.com/yiisoft/yii2-elasticsearch/issues/95#issuecomment-235228705","issue_url":"https://api.github.com/repos/yiisoft/yii2-elasticsearch/issues/95","id":235228705,"user":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T10:23:01Z","updated_at":"2016-07-26T10:23:01Z","body":"Either that or data sent isn't in valid format."}}
{"actor":{"display_login":"samdark"}}