Skip to content

Commit

Permalink
Add composite fields to search API (#2070)
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin Pradet <[email protected]>
  • Loading branch information
MichaelOpitz2 and pquentin authored Sep 5, 2024
1 parent f679597 commit 84f7a33
Show file tree
Hide file tree
Showing 6 changed files with 171 additions and 36 deletions.
32 changes: 25 additions & 7 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 25 additions & 7 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 63 additions & 19 deletions output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 47 additions & 3 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions specification/_types/mapping/RuntimeFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import { Script } from '@_types/Scripting'
export type RuntimeFields = Dictionary<Field, RuntimeField>

export class RuntimeField {
/** For type `composite` */
fields?: Dictionary<string, CompositeSubField>
/** For type `lookup` */
fetch_fields?: RuntimeFieldFetchFields[]
/**
Expand All @@ -47,6 +49,10 @@ export class RuntimeField {
type: RuntimeFieldType
}

class CompositeSubField {
type: RuntimeFieldType
}

/** @shortcut_property field */
export class RuntimeFieldFetchFields {
field: Field
Expand Down

0 comments on commit 84f7a33

Please sign in to comment.