@@ -644,7 +644,8 @@ public extension SearchClient {
644644 /// - Parameter searchParamsObject: The search query params.
645645 /// - Parameter refinements: Refinements to apply to the search in form of dictionary with
646646 /// facet attribute as a key and a list of facet values for the designated attribute.
647- /// Any facet in this list not present in the `disjunctiveFacets` set will be filtered conjunctively.
647+ /// Any facet in this list not present in the `disjunctiveFacets` set will be filtered conjunctively (with AND
648+ /// operator).
648649 /// - Parameter disjunctiveFacets: Set of facets attributes applied disjunctively (with OR operator)
649650 /// - Parameter keepSelectedEmptyFacets: Whether the selected facet values might be preserved even
650651 /// in case of their absence in the search response
@@ -657,19 +658,18 @@ public extension SearchClient {
657658 searchParamsObject: SearchSearchParamsObject ,
658659 refinements: [ String : [ String ] ] ,
659660 disjunctiveFacets: Set < String > ,
660- keepSelectedEmptyFacets: Bool = true ,
661661 requestOptions: RequestOptions ? = nil
662662 ) async throws -> SearchDisjunctiveFacetingResponse < T > {
663663 let helper = DisjunctiveFacetingHelper (
664664 query: SearchForHits ( from: searchParamsObject, indexName: indexName) ,
665665 refinements: refinements,
666666 disjunctiveFacets: disjunctiveFacets
667667 )
668- let queries = helper. makeQueries ( )
668+ let queries = helper. buildQueries ( )
669669 let responses : [ SearchResponse < T > ] = try await self . searchForHitsWithResponse (
670670 searchMethodParams: SearchMethodParams ( requests: queries) ,
671671 requestOptions: requestOptions
672672 )
673- return try helper. mergeResponses ( responses, keepSelectedEmptyFacets : keepSelectedEmptyFacets )
673+ return try helper. mergeResponses ( responses)
674674 }
675675}
0 commit comments