Git Product home page Git Product logo

Comments (6)

redox avatar redox commented on August 28, 2024 2

HI @avbrychak,

that's actually a feature :) We're using different hostnames to cover fault-tolerance in an efficient & simple manner. The underlying list of hosts is defined here: https://github.com/algolia/algoliasearch-client-ruby/blob/master/lib/algolia/client.rb#L29-L30

What you could do it override the hosts and search_hosts option to a single host for testing purpose, so you would totally control it.

Does that make sense?

from algoliasearch-client-ruby.

avbrychak avatar avbrychak commented on August 28, 2024

@redox that helped, thanks!

from algoliasearch-client-ruby.

dansteele avatar dansteele commented on August 28, 2024

@redox I'm having the same issue - is there a neat way to do this inside the rails version?
I understand that the Rails version uses a singleton class, rather than multiple client instances.

Might be worth adding to the docs since you suggest in multiple places to use VCR, and so I imagine this'd be relatively common 😄

from algoliasearch-client-ruby.

redox avatar redox commented on August 28, 2024

@redox I'm having the same issue - is there a neat way to do this inside the rails version?
I understand that the Rails version uses a singleton class, rather than multiple client instances.

@dansteele Just to be sure I understand; re-reading the issue from 2 years ago /o\ @dansteele the fallback on <appid>-1.algolia.net should only happen if the first call fails. Or is your VCR issue something else?

from algoliasearch-client-ruby.

dansteele avatar dansteele commented on August 28, 2024

As normally is the case, I've found out that I was just being dumb and this wasn't the issue! 🥇

Thanks anyway 💯

from algoliasearch-client-ruby.

redox avatar redox commented on August 28, 2024

As normally is the case, I've found out that I was just being dumb and this wasn't the issue! 🥇

Thanks anyway 💯

Ahah, good to hear 👍 You're welcome!

from algoliasearch-client-ruby.

Related Issues (20)

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.