From ae0b323f39448a61caa359222c033e509d5c6054 Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期日, 26 五月 2024 19:16:59 +0800
Subject: [PATCH] fix DSL

---
 db/elastic.go |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/db/elastic.go b/db/elastic.go
index 07df6ad..ba4bbcb 100644
--- a/db/elastic.go
+++ b/db/elastic.go
@@ -82,8 +82,7 @@
                             "lt": "now-` + strconv.Itoa(dayLt) + `d/d"
                         }
                     }
-                },
-
+                }
             ],
             "must_not": [
                 {
@@ -122,8 +121,8 @@
         }
     }
 }`
-	//fmt.Println(queryDSL)
-	//fmt.Println(esURL)
+	fmt.Println(queryDSL)
+	fmt.Println(esURL)
 	docNumberMap := make(map[string]string)
 	buf, err := esutil.EsReq("POST", esURL, []byte(queryDSL))
 	if err != nil {

--
Gitblit v1.8.0