diff --git a/routers/search.go b/routers/search.go index 2ebc585be..55022a0cd 100644 --- a/routers/search.go +++ b/routers/search.go @@ -561,9 +561,6 @@ func searchUserOrOrg(ctx *context.Context, TableName string, Key string, Page in 名称字母序 */ SortBy := ctx.Query("SortBy") - if SortBy == "" { - SortBy = "created_unix.keyword" - } ascending := ctx.QueryBool("Ascending") boolQ := elastic.NewBoolQuery() @@ -675,9 +672,6 @@ func searchDataSet(ctx *context.Context, TableName string, Key string, Page int, */ SortBy := ctx.Query("SortBy") - if SortBy == "" { - SortBy = "download_times.keyword" - } ascending := ctx.QueryBool("Ascending") log.Info("query searchRepo start") boolQ := elastic.NewBoolQuery()