Skip to main content
Required ACL: search
  • By default, facet values are sorted by decreasing count. You can adjust this with the sortFacetValueBy parameter.
  • Searching for facet values doesn’t work if you have more than 65 searchable facets and searchable attributes combined.

Usage

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

// Call the API
var response = await client.SearchForFacetValuesAsync(
  "foo",
  "brand",
  new SearchForFacetValuesRequest
  {
    Params = new SearchForFacetValuesParams { MaxFacetHits = 10 },
  }
);
// >LOG

See the full API reference

For more details about input parameters and response fields.
I