Skip to content

Commit f4904ee

Browse files
luigidellaquilapquentin
authored andcommitted
Add spec for EQL allow_partial_search_results (#3342)
(cherry picked from commit 5987f79)
1 parent 3423480 commit f4904ee

File tree

8 files changed

+194
-3
lines changed

8 files changed

+194
-3
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 49 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 49 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@
394394
"eql.search": {
395395
"request": [
396396
"Request: query parameter 'allow_no_indices' does not exist in the json spec",
397+
"Request: query parameter 'allow_partial_search_results' does not exist in the json spec",
398+
"Request: query parameter 'allow_partial_sequence_results' does not exist in the json spec",
397399
"Request: query parameter 'expand_wildcards' does not exist in the json spec",
398400
"Request: query parameter 'ignore_unavailable' does not exist in the json spec"
399401
],

output/typescript/types.ts

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/eql/search/EqlSearchRequest.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ export interface Request extends RequestBase {
4343
* @server_default true
4444
*/
4545
allow_no_indices?: boolean
46+
/**
47+
* If true, returns partial results if there are shard failures. If false, returns an error with no partial results.
48+
* @server_default false
49+
*/
50+
allow_partial_search_results?: boolean
51+
/**
52+
* If true, sequence queries will return partial results in case of shard failures. If false, they will return no results at all.
53+
* This flag has effect only if allow_partial_search_results is true.
54+
* @server_default false
55+
*/
56+
allow_partial_sequence_results?: boolean
4657
/**
4758
* @server_default open
4859
*/
@@ -100,6 +111,8 @@ export interface Request extends RequestBase {
100111
keep_alive?: Duration
101112
keep_on_completion?: boolean
102113
wait_for_completion_timeout?: Duration
114+
allow_partial_search_results?: boolean
115+
allow_partial_sequence_results?: boolean
103116
/**
104117
* For basic queries, the maximum number of matching events to return. Defaults to 10
105118
* @doc_id eql-basic-syntax

0 commit comments

Comments
 (0)