sunty
2019-10-10 666e33c424331c7253e77283b772fdb43208267f
fix link query
1个文件已修改
2 ■■■ 已修改文件
controllers/esSearch.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 {