elastic: cannot go import elastic.v5. v7 import error

Please use the following questions as a guideline to help me answer your issue/question without further inquiry. Thank you.

Which version of Elastic are you using?

[ ] elastic.v5 (for Elasticsearch 5.x)

Please describe the expected behavior

import elastic v5 verson

Please describe the actual behavior

import elastic v7 version and cannot find package such as below cannot find package "github.com/olivere/elastic/v7/config"

Any steps to reproduce the behavior?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 26 (13 by maintainers)

Most upvoted comments

github.com/olivere/elastic is correct for v6. github.com/olivere/elastic/v7 is for v7.

@nvnobelen I cannot see a problem.

$ export GO111MODULE=on
$ go get github.com/olivere/elastic/v7
go: creating new go.mod: module go4.org/cloud/google
go: finding github.com/olivere/elastic/v7 v7.0.4
go: downloading github.com/olivere/elastic/v7 v7.0.4
go: extracting github.com/olivere/elastic/v7 v7.0.4

What are you doing exactly?