Skip to content

Commit

Permalink
Update src/adapter/search-response-adapter/facet-distribution-adapter.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
  • Loading branch information
bidoubiwa and brunoocasali authored Dec 15, 2022
1 parent 78d8870 commit 26c295d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ function getFacetNames(
}

// Fills the missing facetValue in the current facet distribution if `keepZeroFacet` is true
// using the initial facet distribution.
// Ex:
// using the initial facet distribution. Ex:
//
// Initial distribution: { genres: { horror: 10, comedy: 4 } }
// Current distribution: { genres: { horror: 3 }}
// returned distribution: { genres: { horror: 3, comedy: 0 }}
// Returned distribution: { genres: { horror: 3, comedy: 0 }}
function fillMissingFacetValues(
facets: SearchContext['facets'] | string,
initialFacetDistribution: FacetDistribution,
Expand Down

0 comments on commit 26c295d

Please sign in to comment.