Retrieves Algolia facet hits from multiple indices.
getAlgoliaFacetHits function lets you query facet hits several Algolia indices at once.
If you're using
autocomplete-js, all Algolia utilities are available directly in the package with the right user agents and the virtual DOM layer. You don't need to import the preset separately.
First, you need to install the preset.
Then import it in your project:
If you don't use a package manager, you can use a standalone endpoint:
The initialized Algolia search client.
The queries to search for, with the following parameters:
The index name.
Algolia search for facet values parameters.
These are the default parameters. You can leave them as is and specify other parameters, or override them.
If you override
highlightPostTag, you won't be able to use the built-in highlighting utilities such as
The function returns a promise that resolves to a response with the following schema: