-
Notifications
You must be signed in to change notification settings - Fork 116
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
Import aditional indexing settings on external fields #752
Conversation
b394af0
to
b4388ee
Compare
I am going to move this back to draft, we may need to confirm how/if this is supported by fleet (ping @joshdover). I have installed the modified test package, that includes
FTR, imported definitions of these fields are these ones:
|
@juliaElastic I think you were recently in this mapping code for adding the dimensions settings. Would you be able to take a look and answer the questions above? |
@jsoriano For |
Thanks @juliaElastic, I think this explains what we are seeing.
Ah yes, makes sense, I think it'd be good to have the same logic for
Ah ok, we recently had to add support for this one also in the package-spec (elastic/package-spec#284). It'd be good to have support in fleet too. I will test this with a field of other type. Could you take care of adding the missing pieces to Fleet? |
Yes, let me raise a pr soon. EDIT: raised the pr, is that okay to have |
I think so, I guess this is a default configured by fleet? |
yes |
Issues mentioned related to kibana handling of these settings have been solved in elastic/kibana#128391 (thanks Julia!), so I am reopening this for review.
|
/test |
This reverts commit 633f703. Multi-fields don't appear in documents.
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.
I left a few nit-picks, but in general, I'm wondering if, from a Go code perspective,multi_fields
shouldn't be treated the same way as standard fields. Maybe the implementation logic will be simpler then, as it's just another fields
field to visit in terms of validation. Once we open the gate for generics, we could improve it.
Have you considered this option?
I considered this, but I found that there are several fields that are not common, e.g. a multi field doesn't have a description, or other sub-fields. But maybe we can assume these differences, I can give it another try. |
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.
LGTM, I don't think that you need to iterate on this later one. The current implementation should solve the original issue.
Fields imported from ECS may contain some settings that may affect how they are indexed:
multi_fields
allow to index the same field in different ways for different purposes.index: false
disables indexing of the field.doc_values: false
disables storing some internal data used when sorting and by some aggregations, this can help to save disk space with the cost of losing some functionality for those fields.We may need a follow up in the package spec to add validation for these fields.
Fixes #678.