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; }