algolia / instantsearch

⚡️ Libraries for building performant and instant search and recommend experiences with Algolia. Compatible with JavaScript, TypeScript, React and Vue.
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/
MIT License
3.59k stars 503 forks source link

feat(facets): allow hiding values through renderingContent #6239

Closed thomasbritton closed 2 weeks ago

thomasbritton commented 2 weeks ago

Summary

Adds support for hiding facet values if set in the configuration. JIRA ticket: https://algolia.atlassian.net/browse/EMERCH-1438

Result

If you have set up facets to be "hidden", they will not display. This does not increment the maxValuesPerFacet setting, so it's possible that you receive less values than the limit if you hide many values.

codesandbox-ci[bot] commented 2 weeks ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8b1e2e9fbb41b757173c1fa3aa717ed2e480b90c:

Sandbox Source
example-instantsearch-getting-started Configuration
example-react-instantsearch-getting-started Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-react-instantsearch-next-routing-example Configuration
example-vue-instantsearch-getting-started Configuration