Browse Source

Merge branch 'feature/pool_es_search' into debug

xiexiaoyuan 2 năm trước cách đây
mục cha
commit
f211feb14c
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      services/elastic/report.go

+ 4 - 4
services/elastic/report.go

@@ -132,12 +132,12 @@ func SearchReport(keyWord string, classifyIdFirsts []int, classifyIdSeconds []in
 
 	source["sort"] = []map[string]interface{}{
 		map[string]interface{}{
-			"_score":map[string]interface{}{
+			"PublishTime.keyword":map[string]interface{}{
 				"order":"desc",
 			},
 		},
 		map[string]interface{}{
-			"PublishTime.keyword":map[string]interface{}{
+			"_score":map[string]interface{}{
 				"order":"desc",
 			},
 		},
@@ -271,12 +271,12 @@ func ReportListSearch(keyWord string, classifyIdFirst int, classifyIdSeconds []i
 
 	source["sort"] = []map[string]interface{}{
 		map[string]interface{}{
-			"_score":map[string]interface{}{
+			"PublishTime.keyword":map[string]interface{}{
 				"order":"desc",
 			},
 		},
 		map[string]interface{}{
-			"PublishTime.keyword":map[string]interface{}{
+			"_score":map[string]interface{}{
 				"order":"desc",
 			},
 		},