-
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
Change deprecated _default_ mapping to doc in index templates #4864
Change deprecated _default_ mapping to doc in index templates #4864
Conversation
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.
WFG
libbeat/template/template.go
Outdated
@@ -128,7 +128,7 @@ func (t *Template) generate(properties common.MapStr, dynamicTemplates []common. | |||
} | |||
|
|||
if t.esVersion.IsMajor(2) || t.esVersion.IsMajor(5) { | |||
basicStructure.Put("mappings._default_._all.norms.enabled", false) |
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.
@urso We also use doc
for all types if we write to indices from 5.x with the ES output? Just want to make sure this also works with older versions of ES.
610753d
to
b2778d9
Compare
b2778d9
to
f6878df
Compare
I merged this one, I think it's safe. @ruflin, please speak up if you have any concerns. |
elastic#4864) Closes elastic#4840 (cherry picked from commit 5a5e210)
elastic#4864) (elastic#5019) Closes elastic#4840 (cherry picked from commit b0d48da)
_default_
has been changed todoc
as seen in this example: https://www.elastic.co/guide/en/elasticsearch/reference/master/mapping.html#_example_mappingCloses #4840