We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8e3daf commit 6f3db19Copy full SHA for 6f3db19
search/facets_builder.go
@@ -321,7 +321,11 @@ func (fr *FacetResult) Merge(other *FacetResult) {
321
fr.Total += other.Total
322
fr.Missing += other.Missing
323
fr.Other += other.Other
324
- if fr.Terms != nil && other.Terms != nil {
+ if other.Terms != nil {
325
+ if fr.Terms == nil {
326
+ fr.Terms = other.Terms
327
+ return
328
+ }
329
for _, term := range other.Terms.termFacets {
330
fr.Terms.Add(term)
331
}
0 commit comments