Skip to content

Commit 84f7a33

Browse files
Add composite fields to search API (#2070)
Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
1 parent f679597 commit 84f7a33

File tree

6 files changed

+171
-36
lines changed

6 files changed

+171
-36
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 25 additions & 7 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: 25 additions & 7 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: 63 additions & 19 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: 47 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: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_types/mapping/RuntimeFields.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import { Script } from '@_types/Scripting'
2424
export type RuntimeFields = Dictionary<Field, RuntimeField>
2525

2626
export class RuntimeField {
27+
/** For type `composite` */
28+
fields?: Dictionary<string, CompositeSubField>
2729
/** For type `lookup` */
2830
fetch_fields?: RuntimeFieldFetchFields[]
2931
/**
@@ -47,6 +49,10 @@ export class RuntimeField {
4749
type: RuntimeFieldType
4850
}
4951

52+
class CompositeSubField {
53+
type: RuntimeFieldType
54+
}
55+
5056
/** @shortcut_property field */
5157
export class RuntimeFieldFetchFields {
5258
field: Field

0 commit comments

Comments
 (0)