Fixing IndicesExist function
This commit is contained in:
parent
8fa9ff1c53
commit
aa49572462
4
goes.go
4
goes.go
@ -358,12 +358,10 @@ func (req *Request) Run() (*Response, error) {
|
||||
return esResp, err
|
||||
}
|
||||
json.Unmarshal(body, &esResp.Raw)
|
||||
}
|
||||
|
||||
err = json.Unmarshal(body, &esResp)
|
||||
if err != nil {
|
||||
return &Response{Status: statusCode}, err
|
||||
}
|
||||
}
|
||||
|
||||
if req.api == "_bulk" && esResp.Errors {
|
||||
for _, item := range esResp.Items {
|
||||
|
Loading…
Reference in New Issue
Block a user