Skip to content

Commit

Permalink
Add support for Search Option "seq_no_primary_term" and Index Options…
Browse files Browse the repository at this point in the history
… "if_primary_term" and "if_seq_no"
  • Loading branch information
ryu818 committed Oct 30, 2024
1 parent 5804288 commit 30c0db4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ public function addDocument(Document $doc): Response
'retry_on_conflict',
'routing',
'timeout',
'if_primary_term',
'if_seq_no',
]
);

Expand Down
2 changes: 2 additions & 0 deletions src/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 30c0db4

Please sign in to comment.