From 30c0db489a6192dc3486c070db4e19598885e2fb Mon Sep 17 00:00:00 2001 From: ryu818 Date: Wed, 30 Oct 2024 13:56:17 +0900 Subject: [PATCH 1/3] Add support for Search Option "seq_no_primary_term" and Index Options "if_primary_term" and "if_seq_no" --- src/Index.php | 2 ++ src/Search.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Index.php b/src/Index.php index fc7584e3c..395bcde03 100644 --- a/src/Index.php +++ b/src/Index.php @@ -217,6 +217,8 @@ public function addDocument(Document $doc): Response 'retry_on_conflict', 'routing', 'timeout', + 'if_primary_term', + 'if_seq_no', ] ); diff --git a/src/Search.php b/src/Search.php index 03911aea5..79ccaf6af 100644 --- a/src/Search.php +++ b/src/Search.php @@ -41,6 +41,7 @@ class Search public const OPTION_SHARD_REQUEST_CACHE = 'request_cache'; public const OPTION_FILTER_PATH = 'filter_path'; public const OPTION_TYPED_KEYS = 'typed_keys'; + public const OPTION_SEQ_NO_PRIMARY_TERM = 'seq_no_primary_term'; /* * Search types @@ -419,6 +420,7 @@ protected function validateOption(string $key): void case self::OPTION_SHARD_REQUEST_CACHE: case self::OPTION_FILTER_PATH: case self::OPTION_TYPED_KEYS: + case self::OPTION_SEQ_NO_PRIMARY_TERM: return; } From 9de59cf69f67f30f34f505777529a37ce48ec849 Mon Sep 17 00:00:00 2001 From: ryu818 Date: Fri, 29 Nov 2024 09:23:26 +0900 Subject: [PATCH 2/3] Add support for "seq_no_primary_term","if_primary_term" and "if_seq_no" Options (#2234) --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbfb41567..74132baa6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Added bucket sort aggregation [#2229](https://github.com/ruflin/Elastica/pull/2229) ### Changed +* Add support for Search Option "seq_no_primary_term" and Index Options "if_primary_term" and "if_seq_no" [#2234](https://github.com/ruflin/Elastica/pull/2234) ### Deprecated From 5337e955ab2451cf3b1da4b69fde127d3834980f Mon Sep 17 00:00:00 2001 From: ryu818 Date: Mon, 9 Dec 2024 10:17:36 +0900 Subject: [PATCH 3/3] change: edit CHANGELOG --- CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b58ca7a6a..6f0ed0364 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,10 +25,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed * Add support for Search Option "seq_no_primary_term" and Index Options "if_primary_term" and "if_seq_no" [#2234](https://github.com/ruflin/Elastica/pull/2234) -### Deprecated - -### Removed - ### Fixed * Fixed Pipeline Processor handling to allow for multiple processors of the same type [#2218](https://github.com/ruflin/Elastica/pull/2218)