Skip to content

Conversation

@elastic-renovate-prod
Copy link
Contributor

This PR contains the following updates:

Package Type Update Change
github.com/elastic/go-elasticsearch/v8 require minor v8.17.1 -> v8.18.0

Release Notes

elastic/go-elasticsearch (github.com/elastic/go-elasticsearch/v8)

v8.18.0: 8.18.0

Compare Source

  • Update elastictransport to 8.7.0.
  • Thanks to @​zaneli, the TypedClient can now be used in the BulkIndexer.

New

  • This release adds a BaseClient constructor with no attached APIs, allowing it to be used purely as a transport layer instead of a full-featured API client.
baseClient, err := elasticsearch.NewBaseClient(elasticsearch.Config{
    Addresses: []string{
        "http://localhost:9200",
    },
})

if err != nil {
    log.Println(err)
    return
}

res, err := esapi.InfoRequest{
    Pretty:     false,
    Human:      false,
    ErrorTrace: false,
    FilterPath: nil,
    Header:     nil,
    Instrument: baseClient.InstrumentationEnabled(),
}.Do(context.Background(), baseClient)

if err != nil {
    log.Println(err)
    return
}
defer res.Body.Close()
if res.IsError() {
    log.Println("Error response:", res)
    return
}
var infoMap map[string]interface{}
if err := json.NewDecoder(res.Body).Decode(&infoMap); err != nil {
    log.Println("Error parsing response:", err)
    return
}
log.Printf("Elasticsearch version esapi: %s\n", infoMap["version"].(map[string]interface{})["number"])

typedRes, err := info.New(baseClient).Do(context.Background())
if err != nil {
    log.Println(err)
    return
}
log.Printf("Elasticsearch version typedapi: %s\n", typedRes.Version.Int)

API

  • Updated APIs to 8.18.0

Typed API


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@elastic-renovate-prod
Copy link
Contributor Author

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.

@elastic-renovate-prod elastic-renovate-prod bot enabled auto-merge (squash) April 29, 2025 19:33
@elastic-renovate-prod elastic-renovate-prod bot force-pushed the renovate/github.com-elastic-go-elasticsearch-v8-8.x branch 3 times, most recently from 057320b to a6e3b42 Compare May 3, 2025 18:26
@elastic-renovate-prod elastic-renovate-prod bot force-pushed the renovate/github.com-elastic-go-elasticsearch-v8-8.x branch from a6e3b42 to a2d4c22 Compare May 4, 2025 15:46
@elastic-renovate-prod elastic-renovate-prod bot merged commit 5beb12f into main May 5, 2025
48 checks passed
@elastic-renovate-prod elastic-renovate-prod bot deleted the renovate/github.com-elastic-go-elasticsearch-v8-8.x branch May 5, 2025 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant