浏览代码

no message

xingzai 1 年之前
父节点
当前提交
4c34f5b161
共有 1 个文件被更改,包括 14 次插入14 次删除
  1. 14 14
      services/elastic.go

+ 14 - 14
services/elastic.go

@@ -374,20 +374,20 @@ func SearcCygxArticleHistoryData(indexName, keyword, startDate, endDate, company
 	//机构阅读数量
 	sortMap := make([]interface{}, 0)
 	//如果是一家公司就不按照这个字段排序
-	if len(seliceid) > 1 {
-		sortMap = append(sortMap, map[string]interface{}{
-			"CompanyArticleHistoryNum": map[string]interface{}{
-				"order": "desc",
-			},
-		})
-	}
-
-	//用户阅读数量
-	sortMap = append(sortMap, map[string]interface{}{
-		"UserArticleHistoryNum": map[string]interface{}{
-			"order": "desc",
-		},
-	})
+	//if len(seliceid) > 1 {
+	//	sortMap = append(sortMap, map[string]interface{}{
+	//		"CompanyArticleHistoryNum": map[string]interface{}{
+	//			"order": "desc",
+	//		},
+	//	})
+	//}
+	//
+	////用户阅读数量
+	//sortMap = append(sortMap, map[string]interface{}{
+	//	"UserArticleHistoryNum": map[string]interface{}{
+	//		"order": "desc",
+	//	},
+	//})
 	//时间
 	sortMap = append(sortMap, map[string]interface{}{
 		"CreateTime": map[string]interface{}{