Skip to content

Commit

Permalink
Support multi-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Feb 21, 2022
1 parent f39de42 commit ee17cfa
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,18 @@
level: core
type: keyword
description: Region name.
ignore_above: 1024
ignore_above: 1024
- name: host
title: Host
group: 2
type: group
fields:
- name: os.name
level: extended
type: keyword
ignore_above: 1024
multi_fields:
- name: text
type: text
norms: false
default_field: false
7 changes: 7 additions & 0 deletions versions/1/data_stream/fields/fields.spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ spec:
type: string
enum:
- ecs
norms:
description: Set to false to disable normalization factors used for scoring calculation.
type: boolean
default: true
multi_fields:
description: Additional mappings for this field.
$ref: "#"
fields:
description: Sub-fields, when type is group
$ref: "#" # JSON-schema syntax for pointing to the root of the schema
Expand Down

0 comments on commit ee17cfa

Please sign in to comment.