xingzai 2 жил өмнө
parent
commit
21d3103ec8
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      services/elastic.go

+ 1 - 1
services/elastic.go

@@ -999,7 +999,7 @@ func EsArticleSearch(keyWord string, startSize, pageSize int, orderColumn string
 			},
 		},
 	}
-	if orderColumn == "PublishDate" {
+	if orderColumn == "Comprehensive" {
 		queryMap["sort"] = sortMap
 	}
 	queryMap["from"] = startSize