Skip to content

Commit

Permalink
Fix total structure change for Elasticsearch 6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
medcl committed May 15, 2020
1 parent 861db96 commit 1316c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v6.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (s *ESAPIV6) NewScroll(indexNames string, scrollTime string, docBufferCount
return nil, err
}

scroll = &ScrollV7{}
scroll = &Scroll{}
err = DecodeJson(body, scroll)
if err != nil {
log.Error(err)
Expand Down Expand Up @@ -124,7 +124,7 @@ func (s *ESAPIV6) NextScroll(scrollTime string, scrollId string) (interface{}, e
}

// decode elasticsearch scroll response
scroll := &ScrollV7{}
scroll := &Scroll{}
err := DecodeJson(body, &scroll)
if err != nil {
log.Error(body)
Expand Down

0 comments on commit 1316c96

Please sign in to comment.