{"action":"created","issue":{"url":"https://api.github.com/repos/olivere/elastic/issues/396","repository_url":"https://api.github.com/repos/olivere/elastic","labels_url":"https://api.github.com/repos/olivere/elastic/issues/396/labels{/name}","comments_url":"https://api.github.com/repos/olivere/elastic/issues/396/comments","events_url":"https://api.github.com/repos/olivere/elastic/issues/396/events","html_url":"https://github.com/olivere/elastic/issues/396","id":190224032,"number":396,"title":"Pipeline function not found on type NewBulkIndexRequest","user":{"login":"cdstelly","id":556896,"avatar_url":"https://avatars.githubusercontent.com/u/556896?v=3","gravatar_id":"","url":"https://api.github.com/users/cdstelly","html_url":"https://github.com/cdstelly","followers_url":"https://api.github.com/users/cdstelly/followers","following_url":"https://api.github.com/users/cdstelly/following{/other_user}","gists_url":"https://api.github.com/users/cdstelly/gists{/gist_id}","starred_url":"https://api.github.com/users/cdstelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdstelly/subscriptions","organizations_url":"https://api.github.com/users/cdstelly/orgs","repos_url":"https://api.github.com/users/cdstelly/repos","events_url":"https://api.github.com/users/cdstelly/events{/privacy}","received_events_url":"https://api.github.com/users/cdstelly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-18T02:56:44Z","updated_at":"2016-11-18T02:57:22Z","closed_at":null,"body":"Please use the following questions as a guideline to help me answer\r\nyour issue/question without further inquiry. Thank you.\r\n\r\n### Which version of Elastic are you using?\r\n\r\n[ ] elastic.v2 (for Elasticsearch 1.x)\r\n[ ] elastic.v3 (for Elasticsearch 2.x)\r\n[x] elastic.v5 (for Elasticsearch 5.x)\r\n\r\n### Please describe the expected behavior\r\nUpon setting '[Pipeline](https://godoc.org/gopkg.in/olivere/elastic.v5#BulkIndexRequest.Pipeline)' on an instance of [BulkIndexRequest](https://godoc.org/gopkg.in/olivere/elastic.v5#BulkIndexRequest), the request will go through the ingest pipeline.\r\n\r\n### Please describe the actual behavior\r\nUpon setting '[Pipeline](https://godoc.org/gopkg.in/olivere/elastic.v5#BulkIndexRequest.Pipeline)' on an instance of [BulkIndexRequest](https://godoc.org/gopkg.in/olivere/elastic.v5#BulkIndexRequest) (via NewBulkIndexRequest()), the program fails to compile with the error: \r\n`src/consumer/consumer.go:243: elastic.NewBulkIndexRequest().Pipeline undefined (type *elastic.BulkIndexRequest has no field or method Pipeline)\r\n`\r\nCreating a BulkIndexRequest without calling NewBulkIndexRequest results in the same behavior. \r\n\r\n### Any steps to reproduce the behavior?\r\nYep, this code compiles:\r\n```\r\nresultIndex := elastic.NewBulkIndexRequest().\r\n\t\tIndex(\"scarf\").\r\n\t\tType(\"file\").\r\n\t\tId(strconv.Itoa(int(fi.Id))).\r\n\t\tDoc(fi)\r\n```\r\n\r\nThis code doesn't\r\n```\r\nresultIndex := elastic.NewBulkIndexRequest().\r\n\t\tIndex(\"scarf\").\r\n\t\tType(\"file\").\r\n\t\tId(strconv.Itoa(int(fi.Id))).\r\n\t\tPipeline(\"attachment\").\r\n\t\tDoc(fi)\r\n// or\r\nresultIndex := elastic.NewBulkIndexRequest().\r\n\t\tIndex(\"scarf\").\r\n\t\tType(\"file\").\r\n\t\tId(strconv.Itoa(int(fi.Id))).\r\n\t\tDoc(fi)\r\nresultIndex.Pipeline(\"attachment\")\r\n```"},"comment":{"url":"https://api.github.com/repos/olivere/elastic/issues/comments/261436264","html_url":"https://github.com/olivere/elastic/issues/396#issuecomment-261436264","issue_url":"https://api.github.com/repos/olivere/elastic/issues/396","id":261436264,"user":{"login":"cdstelly","id":556896,"avatar_url":"https://avatars.githubusercontent.com/u/556896?v=3","gravatar_id":"","url":"https://api.github.com/users/cdstelly","html_url":"https://github.com/cdstelly","followers_url":"https://api.github.com/users/cdstelly/followers","following_url":"https://api.github.com/users/cdstelly/following{/other_user}","gists_url":"https://api.github.com/users/cdstelly/gists{/gist_id}","starred_url":"https://api.github.com/users/cdstelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdstelly/subscriptions","organizations_url":"https://api.github.com/users/cdstelly/orgs","repos_url":"https://api.github.com/users/cdstelly/repos","events_url":"https://api.github.com/users/cdstelly/events{/privacy}","received_events_url":"https://api.github.com/users/cdstelly/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T02:57:22Z","updated_at":"2016-11-18T02:57:22Z","body":"[thanks for your time, my apologies if i'm missing something obvious...]"}}
{"actor":{"display_login":"cdstelly"}}