From 86c540783b893000d6836ecd80e0ccded35418f2 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 18 Apr 2022 15:50:35 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/search.go b/routers/search.go index 64832d794..a83b53261 100644 --- a/routers/search.go +++ b/routers/search.go @@ -205,6 +205,7 @@ func getSort(SortBy string, ascending bool, secondSortBy string, secondAscending if SortBy == "default" { sort = append(sort, elastic.NewScoreSort()) if secondSortBy != "" { + log.Info("SortBy=" + SortBy + " secondSortBy=" + secondSortBy) sort = append(sort, elastic.NewFieldSort(secondSortBy).Order(secondAscending)) } return sort