younifyd
Menu

Get faceting

Get faceting

GET/indexes/{index_uid}/settings/faceting

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Get faceting action (under Settings).
  3. Fill in the fields below, then reference the result from later steps as {{getFaceting.response.data}}.

Request

Path parameters

index_uidstringrequired

Unique identifier of the index.

Response

Returns 200 with an object. Read it in later steps with {{getFaceting.response.data.<field>}}.

maxValuesPerFacetinteger | null

Maximum number of facet values returned per facet. Values are sorted in ascending lexicographical order.

Default 100

sortFacetValuesByobject | null

Sort order per facet: by descending count (`count`) or ascending alphanumeric (`alpha`). Key `*` applies to all facets.

Default {"*":"alpha"}

json
{
  "maxValuesPerFacet": 100,
  "sortFacetValuesBy": {
    "*": "alpha"
  }
}

Need more? See the Meilisearch guide for connection setup and behaviour shared by every action.

Was this page helpful?