Skip to content

ElasticsearchVersion

Oliver Eilhard edited this page Mar 4, 2015 · 1 revision

The ElasticsearchVersion shortcut returns the Elasticsearch version of a specific node.

version, err := client.ElasticsearchVersion("http://192.168.1.10")
if err != nil {
    // Handle error
    panic(err)
}
fmt.Printf("Elasticsearch version %s", version)
Clone this wiki locally