Access the Algolia API client
The client is available as a singleton and uses the Algolia credentials you added to your Rails configuration. For example, to get an indexβs settings:Ruby
Access model indices
To access the index used by a model, use theindex_name
class method and pass it as a variable to the API client.
This method follows your naming configuration, such as per-environment settings or custom names.
Ruby