From 3dddd55662df78b3603bd0ab4d0aad4c8cdf3e53 Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期一, 13 一月 2020 10:55:05 +0800
Subject: [PATCH] fix should

---
 controllers/capture.go |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/controllers/capture.go b/controllers/capture.go
index 165c9aa..9d438a3 100644
--- a/controllers/capture.go
+++ b/controllers/capture.go
@@ -44,9 +44,9 @@
 	}
 	//璇锋眰澶�
 	localConf, err2 := cache.GetServerInfo()
-	if err2 !=nil || localConf.AlarmIp == "" || localConf.ServerId == "" {
+	if err2 != nil || localConf.AlarmIp == "" || localConf.ServerId == "" {
 		logger.Debug("localConfig is wrong!!!")
-		util.ResponseFormat(c,code.ComError,"es config err")
+		util.ResponseFormat(c, code.ComError, "es config err")
 		return
 	}
 	url := "http://" + localConf.AlarmIp + ":" + strconv.Itoa(int(localConf.AlarmPort)) +
@@ -67,7 +67,7 @@
 		linkTagInfoAnalyServerFilterStr +
 		"{\"range\":{\"linkTagInfo.picDate\":{\"gte\":\"now+8h-15s\",\"lt\":\"now+8h\"}}}" +
 		"]}}" +
-		"]}}," +
+		"],\"minimum_should_match\":1}}," +
 		"\"sort\":[{\"picDate\":{\"order\":\"desc\"}}]," +
 		"\"size\":\"1000\"," +
 		"\"_source\":{\"includes\":[],\"excludes\":[\"*.feature\"]}}"

--
Gitblit v1.8.0