Search for facet values
Searches for values of a specified facet attribute.
- 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.
Authorizations
Your Algolia application ID.
Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.
Path Parameters
Name of the index on which to perform the operation.
Facet attribute in which to search for values.
This attribute must be included in the attributesForFaceting
index setting with the searchable()
modifier.
Body
Search parameters as a URL-encoded query string.
Text to search inside the facet's values.
Maximum number of facet values to return when searching for facet values.
x < 100
Response
Matching facet values.
Whether the facet count is exhaustive (true) or approximate (false). For more information, see Why are my facet and hit counts not accurate.
Time the server took to process the request, in milliseconds.
Was this page helpful?