Apr 30, 2025
Composition API client
The Composition API client is part of the algolia
gem.
To install this gem, run:
Copy
1
gem install algolia
To use the Composition client, add this import to your files:
Copy
1
require "algolia"
To create an instance of the client:
Copy
1
client = Algolia::CompositionClient.create("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
List of methods
Each method makes one request to the Composition API.
Search
client.search | Run a Composition |
client.search_for_facet_values | Search for facet values |
Did you find this page helpful?