Skip to content

feat(facetOrdering): implement hidden facets in SFFV #6648

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

Merged
merged 4 commits into from
Jun 12, 2025

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Jun 10, 2025

Summary

We read the last results' facet ordering and apply hidden facets (not facet ordering) to the results array.

nbHits does not need to be changed as search for facet values doesn't return that key.

CR-8645

Result

hidden facets according to facetOrdering of the previous "full search" response are taken in account in search for facet values.

the lastResponse is always the most correct one if the index matches, if the previous search was for another index we do nothing

Haroenv added 3 commits June 10, 2025 15:46
We read the last results' facet ordering and apply hidden facets (not facet ordering) to the results array.

nbHits does not need to be changed as search for facet values doesn't return that key.

[CR-8645]
@Haroenv Haroenv requested review from a team, aymeric-giraudet and shaejaz and removed request for a team June 10, 2025 13:52
Copy link

codesandbox-ci bot commented Jun 10, 2025

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 130f1bb:

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

Less than a kb more, but it impacts all over
@Haroenv Haroenv merged commit 2641a67 into master Jun 12, 2025
14 checks passed
@Haroenv Haroenv deleted the feat/hidden-facet-values-in-search-result branch June 12, 2025 13:49
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

Successfully merging this pull request may close these issues.

2 participants