mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-15 21:24:06 +09: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