From 9bbcbac49cf99c914bcc488157985a9ded6dc803 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期日, 23 八月 2020 15:34:58 +0800 Subject: [PATCH] add stayTime --- EsApi.go | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/EsApi.go b/EsApi.go index caea6e1..0201857 100644 --- a/EsApi.go +++ b/EsApi.go @@ -190,7 +190,7 @@ ] } }, - "size": 10, + "size": 2147483647, "_source": { "includes": [ "cameraId", @@ -205,8 +205,8 @@ ] } }` - //fmt.Println(personUrl) - //fmt.Println(personBody) + fmt.Println(personUrl) + fmt.Println(personBody) buf, err := EsReq("POST", personUrl, []byte(personBody)) if err != nil { return nil, err @@ -270,12 +270,13 @@ } } } - ] + ], + "size": 100000000 }, "aggs":{ "top_attention_hits":{ "top_hits":{ - "size": 100, + "size": 1000000, "sort": [ { "picDate": { @@ -292,6 +293,8 @@ } } }` + //fmt.Println(buckersUrl) + //fmt.Println(buckersBody) buf, err := EsReq("POST", buckersUrl, []byte(buckersBody)) if err != nil { return nil, err -- Gitblit v1.8.0