We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa1bb93 + 26c295d commit 2927583Copy full SHA for 2927583
src/adapter/search-response-adapter/facet-distribution-adapter.ts
@@ -9,11 +9,11 @@ function getFacetNames(
9
}
10
11
// Fills the missing facetValue in the current facet distribution if `keepZeroFacet` is true
12
-// using the initial facet distribution.
13
-// Ex:
+// using the initial facet distribution. Ex:
+//
14
// Initial distribution: { genres: { horror: 10, comedy: 4 } }
15
// Current distribution: { genres: { horror: 3 }}
16
-// returned distribution: { genres: { horror: 3, comedy: 0 }}
+// Returned distribution: { genres: { horror: 3, comedy: 0 }}
17
function fillMissingFacetValues(
18
facets: SearchContext['facets'] | string,
19
initialFacetDistribution: FacetDistribution,
0 commit comments