Run a Composition

Runs a query on a single composition and returns matching results.

Usage

Required ACL: search
1
2
3
4
5
6
7
8
require "algolia"

client = Algolia::CompositionClient.create("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")

response = client.search(
  "foo",
  Algolia::Composition::RequestBody.new(params: Algolia::Composition::Params.new(query: "batman"))
)
Did you find this page helpful?