Skip to content

Commit

Permalink
Merge branch 'fix_keep_zero_facets' of github.com:meilisearch/instant…
Browse files Browse the repository at this point in the history
…-meilisearch into fix_keep_zero_facets
  • Loading branch information
bidoubiwa committed Dec 15, 2022
2 parents aa1bb93 + 26c295d commit 2927583
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 2927583

Please sign in to comment.