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.
1 parent ab5f7f7 commit e0db7c6Copy full SHA for e0db7c6
Source/Index.swift
@@ -629,6 +629,14 @@ import Foundation
629
}
630
disjunctiveFacetCounts[facetName] = newFacetCounts
631
632
+ // If facet counts are not exhaustive, propagate this information to the main results.
633
+ // Because disjunctive queries are less restrictive than the main query, it can happen that the main query
634
+ // returns exhaustive facet counts, while the disjunctive queries do not.
635
+ if let exhaustiveFacetsCount = result["exhaustiveFacetsCount"] as? Bool {
636
+ if !exhaustiveFacetsCount {
637
+ mainContent["exhaustiveFacetsCount"] = false
638
+ }
639
640
641
mainContent["disjunctiveFacets"] = disjunctiveFacetCounts
642
return mainContent
0 commit comments