aws / aws-sdk-ruby

The official AWS SDK for Ruby.
https://aws.amazon.com/sdk-for-ruby/
Apache License 2.0
3.56k stars 1.22k forks source link

Why does it lack CloudSearch support for searching and uploading documents #468

Closed orenf closed 10 years ago

orenf commented 10 years ago

AWS::Core::Options::JSONSerializer expects a hash, but the SDF format for the document/batch request URI (used to upload documents ) expects an array of hashes. Am I missing something about the design intent of this SDK.

http://docs.aws.amazon.com/cloudsearch/latest/developerguide/DocumentsBatch.JSON.html

trevorrowe commented 10 years ago

The aws-sdk gem does not currently support the CloudSearch document and search APIs. We are currently evaluating adding support. I can not comment though on any timeline or if this will be included in the v1 Ruby SDK.

quentindemetz commented 10 years ago

I would love to see document upload as well

trevorrowe commented 10 years ago

@quentindemetz V2 of the Ruby SDK supports #search, #suggest, and #upload_documents. You can check it out here:

repo: https://github.com/aws/aws-sdk-core-ruby

docs: http://docs.aws.amazon.com/sdkforruby/api/Aws/CloudSearchDomain/Client.html

gem: aws-sdk-core

zrisher commented 9 years ago

This is great! Thanks for the note about availability in 2.0, saved me a lot of trouble.

It was a bit confusing to come from the CloudSearch API docs, which say "We recommend using one of the AWS SDKs or the AWS CLI to submit search requests", to this gem and not see any of the functionality needed to accomplish that. The "Supported Services" section of the Readme lists CloudSearch without any qualifications, but the documentation doesn't list any of the required methods.

Perhaps you could mention near the top of the ReadMe the services that aren't fully supported, but that V2 is bridging those gaps? Or at least mention on the CloudSearch API pages, when they tell you to use the SDK for services V1 doesn't support, that you need to look at V2.

Otherwise, thank you so much for these gems.