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
9
10
11
12
using Algolia.Search.Clients;
using Algolia.Search.Http;
using Algolia.Search.Models.Composition;

var client = new CompositionClient(
  new CompositionConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
);

var response = await client.SearchAsync<Hit>(
  "foo",
  new RequestBody { Params = new Params { Query = "batman" } }
);
Did you find this page helpful?