See something you need to be configurable but isn't directly? Get in touch.
General Parameters #
- The application id for the algolia account. If not directly passed will pull the value from the
data-applicationId param attached to the search form.
- The search api key for the algolia account. If not directly passed will pull the value from the
data-searchApiKey param attached to the search form.
- The index name to search agains. If not directly passed will pull the value from the
data-index param attached to the search form.
- The primary search input element. i.e. the actual search text input.
- The search form to hook our search against.
- The results container to attach search results to.
- The pagination container to attach any pagination output to.
- The number of results to return per page
- Set to false to prevent an initial search when the page immediately loads.
Facet Parameters #
- The maximum number of facet options to display per facet type.
- An array of the facets to expose. These first need to be configured on the index from algolia as detailed : Faceted Search
- An array of the disjunctive facets to expose. These first need to be configured on the index from algolia as detailed : Faceted Search
- An associative array of keys > labels. If passed these will be available in the facet templates as
facetsOrderOfDisplay default: natural order
- An array of facet names. If passed this order will override the natural order as passed in the initial
disjunctiveFacets arrays. Very useful if you need to mix facets and disjunctive facets in between each other.
- An array of the attributes to use for a slider facet. This is designed to be used with numeric / pricing fields, and uses the
slider-template outputting. It behaves like a disjunctive range search.
- An associative array of forced refinements you want to be applied for all searches. Will be added to all searches and reapplied after every clear action. Very useful if you want to have some forced filtering not directly editable by the user. (i.e. for limiting results by a user's location)