Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the value parameter for constant_keyword fields #1052

Closed
ebeahan opened this issue Oct 26, 2020 · 0 comments · Fixed by #1112
Closed

Support the value parameter for constant_keyword fields #1052

ebeahan opened this issue Oct 26, 2020 · 0 comments · Fixed by #1112
Labels
1.8.0 ready Issues we'd like to address in the future.

Comments

@ebeahan
Copy link
Member

ebeahan commented Oct 26, 2020

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
@ebeahan ebeahan added ready Issues we'd like to address in the future. 1.8.0 labels Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.8.0 ready Issues we'd like to address in the future.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant