From b39d94c592a6287e76337afc4be8ed0524a93496 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期二, 11 二月 2025 14:34:56 +0800 Subject: [PATCH] 修正场所分析的配置参数 --- models/locationAnalysis.go | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/models/locationAnalysis.go b/models/locationAnalysis.go index e3ea7ce..62ff299 100644 --- a/models/locationAnalysis.go +++ b/models/locationAnalysis.go @@ -230,7 +230,7 @@ if err != nil { return err } - logger.Debugf("records %s last result %s", m.Task.Name, records) + logger.Debugf("records %s last result %+v", m.Task.Name, records) domains, err := domainToLocation(records) if err != nil { return err @@ -402,9 +402,9 @@ }, "picDate": map[string]interface{}{ // 鏂板鎸� picDate 鑱氬悎 "date_histogram": map[string]interface{}{ - "field": "picDate", - "interval": "1d", // 鎸夊ぉ鑱氬悎 - "time_zone": "+08:00", // 璁剧疆鏃跺尯 + "field": "picDate", + "interval": "1s", // 鎸夊ぉ鑱氬悎 + //"time_zone": "+08:00", // 璁剧疆鏃跺尯 }, }, }, @@ -467,7 +467,7 @@ if floorBuckets, ok := locationBucket.(map[string]interface{})["floor"].(map[string]interface{})["buckets"].([]interface{}); ok { for _, floorBucket := range floorBuckets { floor := floorBucket.(map[string]interface{})["key"].(string) - logger.Debugf("floor--------------------------------------- %s -----%s ", floor, floorBucket) + //logger.Debugf("floor--------------------------------------- %s -----%s ", floor, floorBucket) appearCount := floorBucket.(map[string]interface{})["doc_count"].(float64) //logger.Debugf("appearCount--------------------------------------- %s- --", appearCount) // 鏋勫缓 LocationRecord 缁撴瀯浣� -- Gitblit v1.8.0