Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update elasticsearch output to use vendored elastigo and fix #331. #333

Merged
merged 5 commits into from
Jul 7, 2016

Conversation

joekiller
Copy link
Contributor

@joekiller joekiller commented Jul 6, 2016

This will fix #331

RespCacheControl []byte `json:"Resp_Cache-Control,omitempty"`
RespVary []byte `json:"Resp_Vary,omitempty"`
RespSetCookie []byte `json:"Resp_Set-Cookie,omitempty"`
ReqUrl string `json:"Req_URL"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

struct field ReqUrl should be ReqURL

@buger
Copy link
Owner

buger commented Jul 6, 2016

Looks good to me, it is definitely quite slow because of proto.Header (now it parse full payload on each call). I should make function that returns multiple headers at once, but for now it should work.

@joekiller
Copy link
Contributor Author

Yeah that is definitely a performance drain. Maybe the new function just returns an array of strings ie [header1-name, header1-value, header2-name, header2-value ... headerN-name, headerN-value]

@buger buger merged commit e65035d into buger:master Jul 7, 2016
@buger
Copy link
Owner

buger commented Jul 7, 2016

https://github.com/buger/gor/wiki/Exporting-to-ElasticSearch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update to latest elasticgo
3 participants