From deb9771e18c23bdcb891368b70b80dd13864e83c Mon Sep 17 00:00:00 2001 From: Jakob Hahn Date: Tue, 24 Sep 2024 16:24:17 +0200 Subject: [PATCH] adds support for opensearch 2.17 Signed-off-by: Jakob Hahn --- .github/workflows/test-compatibility.yml | 1 + CHANGELOG.md | 1 + opensearchapi/api_nodes-stats.go | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/test-compatibility.yml b/.github/workflows/test-compatibility.yml index 9d61da56..b688ce67 100644 --- a/.github/workflows/test-compatibility.yml +++ b/.github/workflows/test-compatibility.yml @@ -28,6 +28,7 @@ jobs: - { opensearch_version: 2.14.0 } - { opensearch_version: 2.15.0 } - { opensearch_version: 2.16.0 } + - { opensearch_version: 2.17.0 } steps: - uses: actions/checkout@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index 711c3caa..8c7357d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Added - Adds ISM Alias action ([#615](https://github.com/opensearch-project/opensearch-go/pull/615)) +- Adds support for opensearch 2.17 ([#623](https://github.com/opensearch-project/opensearch-go/pull/623)) ### Changed diff --git a/opensearchapi/api_nodes-stats.go b/opensearchapi/api_nodes-stats.go index 29de816f..b37c87d0 100644 --- a/opensearchapi/api_nodes-stats.go +++ b/opensearchapi/api_nodes-stats.go @@ -175,6 +175,7 @@ type NodesStatsIndices struct { DfsQuery NodesStatsIndicesSearchRequest `json:"dfs_query"` Expand NodesStatsIndicesSearchRequest `json:"expand"` CanMatch NodesStatsIndicesSearchRequest `json:"can_match"` + Took NodesStatsIndicesSearchRequest `json:"took"` } `json:"request"` } `json:"search"` Merges struct {