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

Allow to override the ignore_above option for field of the type keyword. #7238

Merged

Conversation

ph
Copy link
Contributor

@ph ph commented Jun 1, 2018

By default all fields of the type keyword were limitted to 1024
characters, this PR keep the default but allow developers to redefine that limit using the
ignore_above directive in the field.yml.

Ref: elastic/ecs#6

@@ -150,11 +150,14 @@ func (p *Processor) keyword(f *common.Field) common.MapStr {
defaultFields = append(defaultFields, fullName)

property["type"] = "keyword"
property["ignore_above"] = 1024
if f.IgnoreAbove != "" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test for this?

@ph ph force-pushed the fix/allow-keyword-fields-to-override-ignore-above branch from 3434c4f to f782753 Compare June 5, 2018 17:17
keyword.

By default all fields of the type keyword were limitted to 1024
characters, this PR keep the default but allow developers to redefine that limit using the
`ignore_above` directive in the field.yml.
@ph ph force-pushed the fix/allow-keyword-fields-to-override-ignore-above branch from f782753 to ce69b9b Compare June 5, 2018 17:18
@ph
Copy link
Contributor Author

ph commented Jun 5, 2018

@ruflin added tests

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