-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add support for long and keyword in dict-type #3515
Conversation
heartbeat/heartbeat.template.json
Outdated
@@ -54,6 +54,7 @@ | |||
} | |||
} | |||
}, | |||
"fields": {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe:
"fields": {
"properties": {}
}
looks a bit more clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
libbeat/scripts/generate_template.py
Outdated
}) | ||
|
||
if field.get("dict-type") == "keyword": | ||
properties[field["name"]] = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be done for "long" and "text", then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes. It applies to all dict-type entries.
As keyword is the default currently not mapping was added. For the human reader now a mapping is predefined. For long dict-types a dynamic mapping is added as is done for text
323796e
to
0b67435
Compare
This were introduced in elastic#3515, but I think they cause issues like the one in elastic#4483, at least in recent versions of ES. We already removed these in master, but I didn't realize the 5.x branches are affected. Fixes elastic#4483.
This were introduced in elastic#3515, but I think they cause issues like the one in elastic#4483, at least in recent versions of ES. We already removed these in master, but I didn't realize the 5.x branches are affected. Fixes elastic#4483. (cherry picked from commit a373306)
…iles (#4498) * Remove empty properties from the template files This were introduced in #3515, but I think they cause issues like the one in #4483, at least in recent versions of ES. We already removed these in master, but I didn't realize the 5.x branches are affected. Fixes #4483. (cherry picked from commit a373306) * update testing env
…plate files (elastic#4498) * Remove empty properties from the template files This were introduced in elastic#3515, but I think they cause issues like the one in elastic#4483, at least in recent versions of ES. We already removed these in master, but I didn't realize the 5.x branches are affected. Fixes elastic#4483. (cherry picked from commit d9fc986) * update testing env
As keyword is the default currently not mapping was added. For the human reader now a mapping is predefined.
For long dict-types a dynamic mapping is added as is done for text