mirror of
https://github.com/go-gitea/gitea
synced 2025-08-14 05:28:27 +00:00
Sort issue search results by revelance (#14353)
This commit is contained in:
@@ -205,7 +205,7 @@ func (b *ElasticSearchIndexer) Search(keyword string, repoIDs []int64, limit, st
|
||||
searchResult, err := b.client.Search().
|
||||
Index(b.indexerName).
|
||||
Query(query).
|
||||
Sort("id", true).
|
||||
Sort("_score", false).
|
||||
From(start).Size(limit).
|
||||
Do(context.Background())
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user