Skip to content

Commit 34dfe8b

Browse files
authored
Add ingest field access pattern to specification (#5309)
* Add spec for ingest pipeline field access pattern. * contrib
1 parent 2738716 commit 34dfe8b

File tree

6 files changed

+135
-3
lines changed

6 files changed

+135
-3
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 27 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: 27 additions & 0 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: 57 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/ingest/_types/Pipeline.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ export class Pipeline {
7373
* @availability serverless
7474
*/
7575
modified_date_millis?: EpochTime<UnitMillis>
76+
/**
77+
* Controls how processors in this pipeline should read and write data on a document's source.
78+
* @server_default classic
79+
* @availability stack since=9.2.0
80+
* @availability serverless
81+
*/
82+
field_access_pattern?: FieldAccessPattern
7683
}
7784

7885
// Unused .. but let's keep it for now
@@ -104,3 +111,8 @@ export class PipelineConfig {
104111
*/
105112
processors: ProcessorContainer[]
106113
}
114+
115+
export enum FieldAccessPattern {
116+
classic,
117+
flexible
118+
}

specification/ingest/put_pipeline/PutPipelineRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import { RequestBase } from '@_types/Base'
2121
import { Id, Metadata, VersionNumber } from '@_types/common'
2222
import { Duration } from '@_types/Time'
23+
import { FieldAccessPattern } from '@ingest/_types/Pipeline'
2324
import { ProcessorContainer } from '@ingest/_types/Processors'
2425

2526
/**
@@ -86,5 +87,12 @@ export interface Request extends RequestBase {
8687
* @server_default false
8788
*/
8889
deprecated?: boolean
90+
/**
91+
* Controls how processors in this pipeline should read and write data on a document's source.
92+
* @server_default classic
93+
* @availability stack since=9.2.0
94+
* @availability serverless
95+
*/
96+
field_access_pattern?: FieldAccessPattern
8997
}
9098
}

0 commit comments

Comments
 (0)