Use this component to refine search results with facets.
The Pagination component comes with:
- Refinement list parameters: This corresponds to the
refinementListwidget provided by Algolia.
There are no default configurations for Slots or Variants. Learn more about configuring components.
Add to a composition#
When you add the Refinement List component to a composition, you will need to configure the parameter to bring in data from the Algolia search index.
Click the "Edit Value" button in the Parameters section.
Select the appropriate index from the list provided.
Select the attribute of the index on which you want to refine results from the list provided.
Choose "and" or "or" in the Operator field for how you wish facets to be combined.
- 'or': Returns results matching any of the selected values
- 'and': Returns results matching all selected values
Enter the number of facets that should be retrieved in the Limit field. The default value is 10. When you set showMore and showMoreLimit, this is the number of facet values to display before clicking the Show more button.
Enter the maximum number of items to display (if the widget is showing more items) in the Show More Limit field.
Enter the text that appears in the search field in the Searchable Placeholder field. For example, "Search our products."
Toggle each of the following on and off as desired for your experience:
- Show More: Whether to display a button that expands the number of items
- Searchable: Whether to add a search input to let users search for more facet values
- Escape Facet Values: Escapes the content of the facet values returned by Algolia.
Click the red "Save" button to save your changes to the composition.
You can add additional components within the Widgets slot provided.