From 92e5636b88dfda8d8a4ebe39a38d493ff9c86b9a Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 17 Mar 2022 11:31:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/search.go | 6 ------ 1 file changed, 6 deletions(-) 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()