|
@@ -10,9 +10,10 @@ import (
|
|
|
dataSourceModel "eta/eta_api/models/data_source"
|
|
|
"eta/eta_api/utils"
|
|
|
"fmt"
|
|
|
- "github.com/olivere/elastic/v7"
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
+
|
|
|
+ "github.com/olivere/elastic/v7"
|
|
|
)
|
|
|
|
|
|
// indexName:索引名称
|
|
@@ -1939,7 +1940,7 @@ func EsAddOrEditDataSourceIndex(indexName, docId string, item *dataSourceModel.S
|
|
|
}()
|
|
|
client := utils.EsClient
|
|
|
|
|
|
- resp, e := client.Index().Index(indexName).Id(docId).BodyJson(item).Refresh("true").Do(context.Background())
|
|
|
+ resp, e := client.Index().Index(indexName).Id(docId).BodyJson(item).Do(context.Background())
|
|
|
if e != nil {
|
|
|
err = fmt.Errorf("resp err, %v", e)
|
|
|
return
|