Algolia Search
Last updated
Was this helpful?
Last updated
Was this helpful?
The RefinementList component gives a list of attributes to filter by.
For filters / faceting attributes, settings need to be configured in the Algolia Dashboard before they can be utilized in the frontend.
Import the RefinementList
component & give the attribute you configured for the attribute prop.
This example uses the transformItems
option to filter out the defaultRefinement
for Used Equipment
The SortBy component must be configured in the Algolia backend by duplicating indices and adjusting the relevance priority.
Now we can import the SortBy component. Give the required defaultRefinement prop your default index. Then, assign the replicated indices with their corresponding labels.
These are needed to provide custom props to InstantSearch Widgets