From 41c8c9062aa846cac1117716bc920ac9d451ace2 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期四, 18 六月 2020 14:05:54 +0800
Subject: [PATCH] fix
---
controllers/EsController.go | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/controllers/EsController.go b/controllers/EsController.go
index e31a1e9..5a05f34 100644
--- a/controllers/EsController.go
+++ b/controllers/EsController.go
@@ -3,6 +3,7 @@
import (
"andriodServer/esutil"
"encoding/json"
+ "fmt"
"github.com/gin-gonic/gin"
"io"
"strings"
@@ -51,8 +52,9 @@
"videoUrl"
]
}`
- body, err := esutil.EsReq("POST", EsUrl, []byte(jsonDSL))
+ body, err := esutil.EsReq("POST", EsUrl+"ai_ocean/_search", []byte(jsonDSL))
if err != nil {
+ fmt.Println("err:", err)
return ""
}
jsonStr := string(body)
--
Gitblit v1.8.0