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

Docs: Using algolia_search_params as a pre_get_posts filter for the Algolia query. #376

Closed
tw2113 opened this issue Sep 29, 2023 · 1 comment
Labels
documentation Something about our documentation needs updated

Comments

@tw2113
Copy link
Member

tw2113 commented Sep 29, 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.

@tw2113 tw2113 added the documentation Something about our documentation needs updated label Sep 29, 2023
@tw2113
Copy link
Member Author

tw2113 commented Oct 27, 2023

Moving to WebDevStudios/algolia-snippet-library#1

@tw2113 tw2113 closed this as completed Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Something about our documentation needs updated
Projects
None yet
Development

No branches or pull requests

1 participant