aws / aws-sdk-java

The official AWS SDK for Java 1.x. The AWS SDK for Java 2.x is available here: https://github.com/aws/aws-sdk-java-v2/
https://aws.amazon.com/sdkforjava
Apache License 2.0
4.11k stars 2.83k forks source link

AmazonCloudSearchDomainClient does not expose a way to set "search" requests to use HTTP POST #660

Closed humanzz closed 8 years ago

humanzz commented 8 years ago

As per the documentation at http://docs.aws.amazon.com/cloudsearch/latest/developerguide/submitting-search-requests.html, HTTP GET requests have a size limit of 8190 bytes. To get around that, one might want to submit search requests via an HTTP POST. However, the AmazonCloudSearchDomainClient class does not expose any way to change the default HTTP GET to become a POST.

Ideally, setting the HTTP method for the search HTTP request should be exposed.

zhangzhx commented 8 years ago

We've had discussed this issue in our team meeting. Unfortunately, we are not planing to support both POST and GET in the SDK. We are relying on the service model to generate our SDK code. It's not a easy work to support both http methods simply for this operation. A workaround is perhaps try to shrink the size.

dagnir commented 8 years ago

Hi @humanzz, in case you were still interested in this feature, this is now fixed as of 1.11.32 and all search requests now use POST. Thank you for reporting this!

humanzz commented 8 years ago

Great to know. Thanks!