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

Backport: Set strings to be keywords by default (#2688) #2696

Merged
merged 1 commit into from
Oct 5, 2016

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Oct 5, 2016

Backport of #2688. Original message:

This adds a dynamic mapping to all our template files to set strings to be
keywords by default.

Previously we were using the default of text and only switching to keyword
when configured in fields.yml. This reverses the logic and sets mappings to
text only when requested in fields.yml.

The goal is to make upgrading the mapping template less painful. In the Beats
we have so far, unexpected fields are better of as keywords.

This adds a dynamic mapping to all our template files to set strings to be
keywords by default.

Previously we were using the default of `text` and only switching to `keyword`
when configured in `fields.yml`. This reverses the logic and sets mappings to
`text` only when requested in `fields.yml`.

The goal is to make upgrading the mapping template less painful. In the Beats
we have so far, unexpected fields are better of as keywords.
@andrewkroh andrewkroh merged commit 39e005e into elastic:5.0 Oct 5, 2016
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Backport: Set strings to be keywords by default (elastic#2688)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants