mirror of
https://github.com/go-gitea/gitea
synced 2025-08-15 22:18:26 +00:00
Sort issue search results by revelance (#14353)
This commit is contained in:
@@ -247,6 +247,7 @@ func (b *BleveIndexer) Search(keyword string, repoIDs []int64, limit, start int)
|
||||
newMatchPhraseQuery(keyword, "Comments", issueIndexerAnalyzer),
|
||||
))
|
||||
search := bleve.NewSearchRequestOptions(indexerQuery, limit, start, false)
|
||||
search.SortBy([]string{"-_score"})
|
||||
|
||||
result, err := b.indexer.Search(search)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user