amazon-archives / cloudsearchable Goto Github PK
View Code? Open in Web Editor NEWAn ActiveRecord-style ORM query interface for AWS CloudSearch.
License: Other
An ActiveRecord-style ORM query interface for AWS CloudSearch.
License: Other
If I add a policy to a domain which restricts access (to an IAM user or AWS account), adding/updating/searching all fail with:
"User: anonymous is not authorized to perform: cloudsearch:search on resource: arn:aws:cloudsearch:my-domain"
I believe this is because the gem is going through HTTP and not passing through any credentials. For example, in cloud_search.rb:
def self.post_sdf_list endpoint, sdf_list
uri = URI.parse("http://#{endpoint}/#{API_VERSION}/documents/batch")
req = Net::HTTP::Post.new(uri.path)
req.body = JSON.generate sdf_list
req["Content-Type"] = "application/json"
response = Net::HTTP.start(uri.host, uri.port){|http| http.request(req)}
if response.is_a? Net::HTTPSuccess
JSON.parse response.body
else
# Raise an exception based on the response see http://ruby-doc.org/stdlib-1.9.2/libdoc/net/http/rdoc/Net/HTTP.html
response.error!
end
end
or is this expected behavior (the gem only supports public domains)?
Thanks,
Rob
The documentation does not mention that default locator fields in cloud search index needs to be "#{model_name}_id". This is confusing for new users who assume it is "id"
Is this repository actively supported? I am considering using this gem but the fact that no one responds to issues worries me.
Hi Team, I am trying to integrate cloudsearchable gem with my existing project but installation steps are not clear, please add some step like where we will mention AWS credentails, how re-indexing will work etc.
I have tried with adding keys into initializer but not working
Aws.config.update({
credentials: Aws::Credentials.new('your_access_key_id', 'your_secret_access_key')
})
Getting below error
Aws::CloudSearch::Errors::SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
Please help @philipmw
Cloudsearchable needs to publish the metrics that can be consumed by the client. I am working on a patch that will use active support instrumentation to publish the metrics. http://edgeguides.rubyonrails.org/active_support_instrumentation.html#creating-custom-events
The CloudSearch query specification provides for (and ___ ___ ...) to wrap multiple clauses. The QueryChain, however, wraps even just one clause in "and". This needlessly increases URL length and may increase server processing time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.