From f7428b530505dd5983e4985224be846c16e46010 Mon Sep 17 00:00:00 2001 From: Erik Tammaru Date: Fri, 28 Jun 2024 11:12:46 -0400 Subject: [PATCH 1/2] add test for search with seq_no_primary_term Signed-off-by: Erik Tammaru --- tests/_core/search.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/_core/search.yaml b/tests/_core/search.yaml index 6c9ef9f4f..bb574de68 100644 --- a/tests/_core/search.yaml +++ b/tests/_core/search.yaml @@ -96,3 +96,25 @@ chapters: method: POST response: status: 200 + - synopsis: Search with seq_no_primary_term. + path: /{index}/_search + parameters: + index: movies + seq_no_primary_term: true + method: POST + response: + status: 200 + payload: + timed_out: false + hits: + total: + value: 1 + relation: eq + hits: + - _index: movies + _source: + director: Bennett Miller + title: Moneyball + year: 2011 + _seq_no: 0 + _primary_term: 1 From 97c2186c7601456b57e144b958e175af74c753bd Mon Sep 17 00:00:00 2001 From: Erik Tammaru Date: Fri, 28 Jun 2024 11:15:15 -0400 Subject: [PATCH 2/2] update CHANGELOG Signed-off-by: Erik Tammaru --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12bef5fba..603cd6056 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Added SPECIFICATION_TESTING.md [#359](https://github.com/opensearch-project/opensearch-api-specification/pull/359) - Added StoryValidator to validate stories before running them ([#354](https://github.com/opensearch-project/opensearch-api-specification/issues/354)) - Added support for `text/plain` responses in `_cat` APIs ([#360](https://github.com/opensearch-project/opensearch-api-specification/pull/360)) +- Added test for search with seq_no_primary_term ([#367](https://github.com/opensearch-project/opensearch-api-specification/pull/367)) ### Changed