From 7549bb1a41ac98875a6e0c3d91850631e0b1c82e Mon Sep 17 00:00:00 2001 From: wenlele Date: Fri, 1 Sep 2023 16:48:32 +0800 Subject: [PATCH] =?UTF-8?q?es=E6=95=B0=E6=8D=AE=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/project/group.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/app/lib/controllers/project/group.js b/api/app/lib/controllers/project/group.js index ad09485..9ade271 100644 --- a/api/app/lib/controllers/project/group.js +++ b/api/app/lib/controllers/project/group.js @@ -255,7 +255,8 @@ async function groupStatisticOnline (ctx) { // 查在线率 const strucOnlineClient = ctx.app.fs.esclient.strucOnline - console.log('es数据,', strucOnlineClient) + console.log('es参数,', strucOnlineClient.config) + console.log('strucIdArr', strucIdArr) const onlineRes = await strucOnlineClient.search({ index: strucOnlineClient.config.index, @@ -287,10 +288,11 @@ async function groupStatisticOnline (ctx) { "order": "asc" } } - ] + ], + "size": 10000 } }) - console.log('es数据,', onlineRes.hits.hits.length,onlineRes) + console.log('es数据,', onlineRes.hits.hits.length, onlineRes.hits.hits) for (let struc of strucRes) { let curOnline =