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

http compression #515

Closed
priyolahiri opened this issue Dec 10, 2013 · 6 comments
Closed

http compression #515

priyolahiri opened this issue Dec 10, 2013 · 6 comments

Comments

@priyolahiri
Copy link

how do I make elastica use http compression after switching on http compression in elasticsearch?

@ruflin
Copy link
Owner

ruflin commented Dec 11, 2013

Good question. Was not aware of this feature yet. Looks like we have to set CURLOPT_ENCODING. You can do this by setting the curl config params for the connections in Elastica\Client:

https://github.com/ruflin/Elastica/blob/master/lib/Elastica/Client.php#L40
https://github.com/ruflin/Elastica/blob/master/lib/Elastica/Transport/Http.php#L157

@priyolahiri
Copy link
Author

This becomes specially important when receiving large datasets back from Elastic. Gz compression helps immensely.

@ruflin
Copy link
Owner

ruflin commented Dec 11, 2013

Did you try it out and did it work?

@priyolahiri
Copy link
Author

Not yet, Will fork, make the code changes and issue a pull request in the next two days.

On 12-Dec-2013, at 4:22 am, Nicolas Ruflin notifications@github.com wrote:

Did you try it out and did it work?


Reply to this email directly or view it on GitHub.

@ruflin
Copy link
Owner

ruflin commented Dec 12, 2013

Ok, keep me posted.

@ruflin
Copy link
Owner

ruflin commented Mar 8, 2014

I will close this one as no feedback came in for 3 months. In case the issue is not resolved, please reopen.

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

No branches or pull requests

2 participants