Skip to content

Commit

Permalink
Add include_in_parent and include_in_root for nested fields
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkroh committed Apr 28, 2022
1 parent f77a923 commit 2223ec9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/packages/good/data_stream/foo/fields/some_fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,13 @@
type: match_only_text
- name: metric.*_bytes
type: long
- name: a
type: nested
include_in_parent: true
- name: a.b
type: keyword
- name: c
type: nested
include_in_root: true
- name: c.d
type: keyword
16 changes: 16 additions & 0 deletions versions/1/integration/data_stream/fields/fields.spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,21 @@ spec:
settings.
type: string

include_in_parent:
description: >
For nested field types, this specifies if all fields in the nested
object are also added to the parent document as standard (flat)
fields.
type: boolean
default: false

include_in_root:
description: >
For nested field types, this specifies if all fields in the nested
object are also added to the root document as standard (flat)
fields.
type: boolean
default: false

required:
- name

0 comments on commit 2223ec9

Please sign in to comment.