Skip to content

Commit

Permalink
feat: handle disjunctive facets with composition API (#6485)
Browse files Browse the repository at this point in the history
* feat: add support for disjunctive facets with Composition API

* fix: no lambda

* fix: no string template

* Update requestBuilder.js

Co-authored-by: Haroen Viaene <[email protected]>

---------

Co-authored-by: Haroen Viaene <[email protected]>
  • Loading branch information
e-krebs and Haroenv authored Dec 20, 2024
1 parent a09c561 commit 77cad8e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/algoliasearch-helper/src/requestBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,11 @@ var requestBuilder = {
*/
_getCompositionHitsSearchParams: function (state) {
var facets = state.facets
// eslint-disable-next-line no-warning-comments
// TODO: annotate with `disjunctive`
.concat(state.disjunctiveFacets)
.concat(
state.disjunctiveFacets.map(function (value) {
return 'disjunctive(' + value + ')';
})
)
.concat(requestBuilder._getHitsHierarchicalFacetsAttributes(state))
.sort();

Expand Down

0 comments on commit 77cad8e

Please sign in to comment.