{"action":"created","issue":{"url":"https://api.github.com/repos/ErickTamayo/laravel-scout-elastic/issues/39","repository_url":"https://api.github.com/repos/ErickTamayo/laravel-scout-elastic","labels_url":"https://api.github.com/repos/ErickTamayo/laravel-scout-elastic/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/ErickTamayo/laravel-scout-elastic/issues/39/comments","events_url":"https://api.github.com/repos/ErickTamayo/laravel-scout-elastic/issues/39/events","html_url":"https://github.com/ErickTamayo/laravel-scout-elastic/issues/39","id":206610747,"number":39,"title":"custom index options?","user":{"login":"huglester","id":150731,"avatar_url":"https://avatars.githubusercontent.com/u/150731?v=3","gravatar_id":"","url":"https://api.github.com/users/huglester","html_url":"https://github.com/huglester","followers_url":"https://api.github.com/users/huglester/followers","following_url":"https://api.github.com/users/huglester/following{/other_user}","gists_url":"https://api.github.com/users/huglester/gists{/gist_id}","starred_url":"https://api.github.com/users/huglester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huglester/subscriptions","organizations_url":"https://api.github.com/users/huglester/orgs","repos_url":"https://api.github.com/users/huglester/repos","events_url":"https://api.github.com/users/huglester/events{/privacy}","received_events_url":"https://api.github.com/users/huglester/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-02-09T19:48:29Z","updated_at":"2017-02-20T14:05:02Z","closed_at":null,"body":"Hello\r\n\r\nif I would like to have custom index, like:\r\n\r\n```php\r\n$params = [\r\n            'index' => $this->index,\r\n            'body' => [\r\n                'settings' => [\r\n                    'number_of_shards' => 5,\r\n                    'number_of_replicas' => 1,\r\n                ],\r\n                'mappings' => [\r\n                    $this->type => [\r\n                        'properties' => [\r\n                            'id' => [\r\n                                'type' => 'integer',\r\n                            ],\r\n                            'uri' => [\r\n                                'type' => 'keyword',\r\n                                //'analyzer' => 'standard'\r\n                            ],\r\n                            'name' => [\r\n                                'type' => 'text',\r\n                                'analyzer' => 'standard'\r\n                            ],\r\n                            'about_me' => [\r\n                                'type' => 'text',\r\n                                'analyzer' => 'standard'\r\n                            ],\r\n                            'created_at' => [\r\n                                'type' => 'date',\r\n                                'format' => 'yyyy-MM-dd HH:mm:ss'\r\n                            ],\r\n                        ],\r\n                    ],\r\n                ],\r\n            ],\r\n        ];\r\n```\r\n\r\nDo you have suggestions?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/ErickTamayo/laravel-scout-elastic/issues/comments/281087452","html_url":"https://github.com/ErickTamayo/laravel-scout-elastic/issues/39#issuecomment-281087452","issue_url":"https://api.github.com/repos/ErickTamayo/laravel-scout-elastic/issues/39","id":281087452,"user":{"login":"thomasjsn","id":6061006,"avatar_url":"https://avatars.githubusercontent.com/u/6061006?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasjsn","html_url":"https://github.com/thomasjsn","followers_url":"https://api.github.com/users/thomasjsn/followers","following_url":"https://api.github.com/users/thomasjsn/following{/other_user}","gists_url":"https://api.github.com/users/thomasjsn/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasjsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasjsn/subscriptions","organizations_url":"https://api.github.com/users/thomasjsn/orgs","repos_url":"https://api.github.com/users/thomasjsn/repos","events_url":"https://api.github.com/users/thomasjsn/events{/privacy}","received_events_url":"https://api.github.com/users/thomasjsn/received_events","type":"User","site_admin":false},"created_at":"2017-02-20T14:05:02Z","updated_at":"2017-02-20T14:05:02Z","body":"@kkomelin Thanks; I can make it so that if mappings are defined in the model they are taken from there, if not; the config file. That should suit us both then :)"}}
{"actor":{"display_login":"thomasjsn"}}