Update to last common bleve (#3986)

This commit is contained in:
Antoine GIRARD authored and Lunny Xiao committed 2018-05-19 20:49:46 +08:00
1 parent 1b7cd3d0b0
commit 917b9641ec
184 files changed
+39576 -121

No files matched your search

+5
View File
@@ -481,5 +481,10 @@ func (sr *SearchResult) Merge(other *SearchResult) {
if other.MaxScore > sr.MaxScore {
sr.MaxScore = other.MaxScore
}
if sr.Facets == nil && len(other.Facets) != 0 {
sr.Facets = other.Facets
return
}
sr.Facets.Merge(other.Facets)
}