-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
918: Fix keepZeroFacets on disjunctive facet search r=bidoubiwa a=bidoubiwa Since introducing the multi-index search here #888 the setting `keepZeroFacets` was broken. This PR introduces the fix to this issue https://user-images.githubusercontent.com/33010418/207385436-e49ded20-e76b-4974-86de-904cfeecfbd7.mp4 What was done in this pr: - keepZeroFacet management has been moved to the response adapter instead of the request adapter - Filtering methods and filtering tests were removed as the new facet distribution management has completely changed - `defaultFacetDistribution` is renamed `initialFacetDistribution` and contains the distribution of an index without any other requests - Initialization of facet distribution was moved from client to its own file Playgrounds: - New SingleMovieIndex playground to create a new environment for testing - Updated `SingleIndex` with keepZeroFacets - Updated `MultiIndex` with keepZeroFacets Co-authored-by: Charlotte Vermandel <[email protected]>
- Loading branch information
Showing
17 changed files
with
867 additions
and
356 deletions.
There are no files selected for viewing
96 changes: 0 additions & 96 deletions
96
src/adapter/search-request-adapter/__tests__/facets-distribution-assigns.tests.ts
This file was deleted.
Oops, something went wrong.
71 changes: 0 additions & 71 deletions
71
src/adapter/search-request-adapter/__tests__/filter-cache.tests.ts
This file was deleted.
Oops, something went wrong.
5 changes: 2 additions & 3 deletions
5
src/adapter/search-request-adapter/__tests__/search-params.tests.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.