Skip to content

Conversation

yaronp68
Copy link

replaced defaults with _doc

Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/

replaced _defaults_ with _doc
@jsvd jsvd self-requested a review May 29, 2018 14:24
"_all": { "enabled": false },
"_source": { "compress": true },
"properties" : {
"_doc": {
Copy link
Member

Choose a reason for hiding this comment

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

since _doc is only allowed in elasticsearch 6.2+ (prior to this types can't start with underscore), I'm a bit concerned with accepting this change, which won't work for anyone testing with a <6.2 es cluster. thoughts?

Copy link
Author

Choose a reason for hiding this comment

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

defaults is not allowed in elasticsearch 6.*
So it's similar concern I suppose?

Copy link
Member

Choose a reason for hiding this comment

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

unfortunately this is not obvious but _default_ is treated differently. Installing a template with _default_ on 6.1.2 will work, but _doc not.

That said, the template as it is doesn't work on 6.1.2 either because it still uses the string type which is no longer valid since 6.0

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