From 666e33c424331c7253e77283b772fdb43208267f Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期四, 10 十月 2019 18:07:26 +0800
Subject: [PATCH] fix link query
---
controllers/esSearch.go | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/controllers/esSearch.go b/controllers/esSearch.go
index 83dd6db..84e2ef0 100644
--- a/controllers/esSearch.go
+++ b/controllers/esSearch.go
@@ -220,7 +220,7 @@
}
url := "http://" + localConf.AlarmIp + ":" + strconv.Itoa(int(localConf.AlarmPort)) +
"/" + config.EsInfo.EsIndex.VideoPersons.IndexName + "," + config.EsInfo.EsIndex.Personaction.IndexName + "/_search?search_type=dfs_query_then_fetch"
- jsonDSL := "{\"query\":{\"bool\":{\"filter\":[{\"term\":{\"linkId.keyword\":\"" + linkId + "\"}}],\"must_not\":[{\"term\":{\"id\":\"" + id + "\"}}]}},\"size\":100}"
+ jsonDSL := "{\"query\":{\"bool\":{\"filter\":[{\"term\":{\"linkId\":\"" + linkId + "\"}}],\"must_not\":[{\"term\":{\"id\":\"" + id + "\"}}]}},\"size\":100}"
buf, err := esutil.EsReq("POST", url, []byte(jsonDSL))
if err != nil {
--
Gitblit v1.8.0