Skip to content

Support the value parameter for constant_keyword fields #1052

Closed
@ebeahan

Description

@ebeahan

The constant_keyword data type accepts the value parameter. On a constant_keyword field if the value parameter is specified, that value is used for all documents in the index. Otherwise, it is set based on the first document that gets indexed.

If a user wishes to use the ECS tooling to manage their ES index templates, they may also wish to control the value of value via their custom field definitions.

Example definition:

  - name: acme
    title: acme
    group: 2
    short: Fields describing acme-related needs.
    description: >
      Acme-related needs
    fields:
      - name: stream
        description: stream
        level: extended
        type: constant_keyword
        value: widgets

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.8.0readyIssues we'd like to address in the future.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions