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

Change deprecated _default_ mapping to doc in index templates #4864

Merged
merged 1 commit into from
Aug 10, 2017

Conversation

kvch
Copy link
Contributor

@kvch kvch commented Aug 10, 2017

_default_ has been changed to doc as seen in this example: https://www.elastic.co/guide/en/elasticsearch/reference/master/mapping.html#_example_mapping

Closes #4840

Copy link
Contributor

@tsg tsg left a comment

Choose a reason for hiding this comment

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

WFG

@@ -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)
Copy link
Member

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.

@kvch kvch force-pushed the fix/deprecated-default-index-template branch from 610753d to b2778d9 Compare August 10, 2017 14:26
@kvch kvch force-pushed the fix/deprecated-default-index-template branch from b2778d9 to f6878df Compare August 10, 2017 14:53
@tsg tsg merged commit 5a5e210 into elastic:master Aug 10, 2017
@tsg
Copy link
Contributor

tsg commented Aug 10, 2017

I merged this one, I think it's safe. @ruflin, please speak up if you have any concerns.

@tsg tsg added the needs_backport PR is waiting to be backported to other branches. label Aug 25, 2017
tsg pushed a commit to tsg/beats that referenced this pull request Aug 25, 2017
@tsg tsg removed the needs_backport PR is waiting to be backported to other branches. label Aug 25, 2017
ruflin pushed a commit that referenced this pull request Aug 28, 2017
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
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.

3 participants