weixin_39585035
2020-12-01 17:45 阅读 1

http compression

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

该提问来源于开源项目:ruflin/Elastica

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

6条回答 默认 最新

  • weixin_39530288 weixin_39530288 2020-12-01 17:45

    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

    点赞 评论 复制链接分享
  • weixin_39585035 weixin_39585035 2020-12-01 17:45

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

    点赞 评论 复制链接分享
  • weixin_39530288 weixin_39530288 2020-12-01 17:45

    Did you try it out and did it work?

    点赞 评论 复制链接分享
  • weixin_39585035 weixin_39585035 2020-12-01 17:45

    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.com wrote:

    Did you try it out and did it work?

    — Reply to this email directly or view it on GitHub.

    点赞 评论 复制链接分享
  • weixin_39530288 weixin_39530288 2020-12-01 17:45

    Ok, keep me posted.

    点赞 评论 复制链接分享
  • weixin_39530288 weixin_39530288 2020-12-01 17:45

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

    点赞 评论 复制链接分享

相关推荐