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

Add support for index to fields.yml #4853

Merged
merged 1 commit into from
Aug 10, 2017
Merged

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Aug 9, 2017

Setting index: false for a field was not possible so far. This adds this possibility. For more details in index see: https://www.elastic.co/guide/en/elasticsearch/reference/5.5/mapping-index.html

Additional changes:

Setting `index: false` for a field was not possible so far. This adds this possibility. For more details in `index` see: https://www.elastic.co/guide/en/elasticsearch/reference/5.5/mapping-index.html

Additional changes:

* `enable` and `dynamic` are only available for objects. The functionality was move to object. https://www.elastic.co/guide/en/elasticsearch/reference/5.5/enabled.html
* Add support for `enable` and `index` to the docs script so it is visible in the docs which fields are indexed and which ones not

if f.Dynamic.value != nil {
property["dynamic"] = f.Dynamic.value
if f.Index != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you treat f.Index as default property but not f.Enabled?

Copy link
Member Author

Choose a reason for hiding this comment

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

As enable is only available for objects, so I moved it to objects.

@ruflin
Copy link
Member Author

ruflin commented Aug 9, 2017

jenkins, test it

1 similar comment
@ruflin
Copy link
Member Author

ruflin commented Aug 10, 2017

jenkins, test it

@tsg tsg merged commit af3ecf9 into elastic:master Aug 10, 2017
ruflin added a commit to ruflin/beats that referenced this pull request Aug 14, 2017
With elastic#4853 in fields.yml fields can be marked as `enable: false` or `index: false`. This should also have an affect on the index pattern. Objects which are not enabled will be skipped in the index pattern and fields which are not indexed all settings are set to false.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants