Skip to content

Commit de646de

Browse files
authored
Fix Open Point in time API (#2829)
1 parent 84f7a33 commit de646de

File tree

7 files changed

+111
-7
lines changed

7 files changed

+111
-7
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 18 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: 18 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: 29 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

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

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.

specification/_global/open_point_in_time/OpenPointInTimeRequest.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import { RequestBase } from '@_types/Base'
2121
import { ExpandWildcards, Indices, Routing } from '@_types/common'
2222
import { Duration } from '@_types/Time'
23+
import { QueryContainer } from '@_types/query_dsl/abstractions'
2324

2425
/**
2526
* A search request by default executes against the most recent visible data of the target indices,
@@ -65,4 +66,10 @@ export interface Request extends RequestBase {
6566
*/
6667
expand_wildcards?: ExpandWildcards
6768
}
69+
body: {
70+
/**
71+
* Allows to filter indices if the provided query rewrites to `match_none` on every shard.
72+
*/
73+
index_filter?: QueryContainer
74+
}
6875
}

specification/_global/open_point_in_time/OpenPointInTimeResponse.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
*/
1919

2020
import { Id } from '@_types/common'
21+
import { ShardStatistics } from '@_types/Stats'
2122

2223
export class Response {
23-
body: { id: Id }
24+
body: {
25+
/** Shards used to create the PIT */
26+
_shards: ShardStatistics
27+
id: Id
28+
}
2429
}

0 commit comments

Comments
 (0)