Giter Club home page Giter Club logo

cloudsearchable's People

Contributors

ajglover avatar brendandixon avatar fukata avatar loganb avatar luxx avatar peeyush1234 avatar philipmw avatar rainhead avatar trevorrowe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloudsearchable's Issues

Assumes domain has public access?

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

default ids

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"

project active?

Is this repository actively supported? I am considering using this gem but the fact that no one responds to issues worries me.

Installation steps is not clear

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

Query Chain applies 'and' to only one clause

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.