Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using algolia_search_params as a pre_get_posts filter for the Algolia query #1

Open
tw2113 opened this issue Oct 27, 2023 · 1 comment

Comments

@tw2113
Copy link
Member

tw2113 commented Oct 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant