Registry / http-client / olivere-elastic-v2

olivere-elastic-v2

JSON →
library2.0.61gogounverified

Package elastic provides an interface to the Elasticsearch server.

go get gopkg.in/olivere/elastic.v2
INSTALL
IMPORT
SIG · OLIVERE-ELASTIC-V2
O
olivere-elastic-v2
http-clientgov2.0.61
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

elastic
gopkg.in/olivere/elastic.v2

Create an Elasticsearch client and ping the server.

package main import ( "gopkg.in/olivere/elastic.v2" ) func main() { client, err := elastic.NewClient() if err != nil { panic(err) } _, _, _ = client.Ping("http://127.0.0.1:9200").Do() }
Debug
Known issues
breakingVersion 2 is outdated; consider upgrading to v5 or later.
fix
Use gopkg.in/olivere/elastic.v5 or github.com/olivere/elastic/v7.
affects: 2.x
Upgrade
Version history
2.0.61latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
olivere-elastic-v2 — go get olivere-elastic-v2 · libregistry