mirror of
https://github.com/go-gitea/gitea
synced 2025-07-07 11:07:20 +00:00
Update to last common bleve (#3986)
This commit is contained in:
committed by
Lunny Xiao
parent
1b7cd3d0b0
commit
917b9641ec
5
vendor/github.com/blevesearch/bleve/search.go
generated
vendored
5
vendor/github.com/blevesearch/bleve/search.go
generated
vendored
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user