Skip to content

Commit 46d8121

Browse files
github-actions[bot]luigidellaquilal-trotta
committed
Add default values for EQL allow_partial_search_results and allow_partial_sequence_results (#3637) (#3652)
(cherry picked from commit d74ecca) Co-authored-by: Luigi Dell'Aquila <[email protected]> Co-authored-by: Laura Trotta <[email protected]> (cherry picked from commit a38549b)
1 parent cdfdc10 commit 46d8121

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

specification/eql/search/EqlSearchRequest.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,19 @@ export interface Request extends RequestBase {
118118
keep_alive?: Duration
119119
keep_on_completion?: boolean
120120
wait_for_completion_timeout?: Duration
121+
/**
122+
* Allow query execution also in case of shard failures.
123+
* If true, the query will keep running and will return results based on the available shards.
124+
* For sequences, the behavior can be further refined using allow_partial_sequence_results
125+
* @server_default true
126+
*/
121127
allow_partial_search_results?: boolean
128+
/**
129+
* This flag applies only to sequences and has effect only if allow_partial_search_results=true.
130+
* If true, the sequence query will return results based on the available shards, ignoring the others.
131+
* If false, the sequence query will return successfully, but will always have empty results.
132+
* @server_default false
133+
*/
122134
allow_partial_sequence_results?: boolean
123135
/**
124136
* For basic queries, the maximum number of matching events to return. Defaults to 10

0 commit comments

Comments
 (0)