The attribute passed as
attribute must be present in attributesForFaceting on the Algolia dashboard or configured via the API.Usage
Connector Options
Name of the attribute for faceting (e.g., “category”).
How many facet values to retrieve.
Whether to display a button that expands the number of items.
How many facet values to retrieve when
toggleShowMore is called.How to sort refinements. Possible values:
count, isRefined, name:asc, name:desc.You can also use a sort function that behaves like the standard JavaScript compareFunction.Function to transform the items passed to the templates.
Render Options
The elements that can be refined for the current search results.Each item has:
value: The value of the menu itemlabel: Human-readable value of the itemcount: Number of results matched after refinementisRefined: Indicates if the refinement is applied
Filters the search to the item value. Selecting a new item will unselect the current one.
Creates the URL for a single item name in the list.
true if refinement can be applied.true if the menu is displaying all items.Toggles the number of values displayed between
limit and showMoreLimit.true if the toggleShowMore button can be activated.Sends an event to the Insights middleware.
The options passed to the connector.