initialize only with an imminent merge
This commit is contained in:
parent
3afc5458e0
commit
039a4df33b
|
@ -481,7 +481,7 @@ func (sr *SearchResult) Merge(other *SearchResult) {
|
|||
if other.MaxScore > sr.MaxScore {
|
||||
sr.MaxScore = other.MaxScore
|
||||
}
|
||||
if len(sr.Facets) == 0 {
|
||||
if len(sr.Facets) == 0 && len(other.Facets) != 0 {
|
||||
sr.Facets = make(search.FacetResults)
|
||||
}
|
||||
sr.Facets.Merge(other.Facets)
|
||||
|
|
Loading…
Reference in New Issue