Docs: Using `algolia_search_params` as a `pre_get_posts` filter for the Algolia query.
tw2113 opened this issue · comments
Making use of algolia_search_params
allows for amending parameters used in the query for Algolia's search.
With it, you can amend the array of parameters, as documented at https://www.algolia.com/doc/api-reference/search-api-parameters/
Most specifically, you would want to make use of the filters
parameter, which is documented at https://www.algolia.com/doc/api-reference/api-parameters/filters/
Make sure to note this detail:
You must declare for each attribute you use as a filter in attributesForFaceting, except for _tags, which are automatically considered as attributesForFaceting.
Moving to WebDevStudios/algolia-snippet-library#1