Conversation
|
Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run; then say 'jenkins, test it'. |
|
@scampi am I interpreting your question properly? Should we show columns/fields for the fields that are excluded? Or should Kibana basically pretend like they don't exist? I think we should simply exclude them when we are fetching the source for a document. If the user wants to aggregate on that field, or show it in a table, or even select it explicitly in discover then the field should be fetched. |
|
@spalger your 2nd paragraph actually answers my question ;o) At the moment, there is no way to retrieve a field once it is excluded. It will appear as a dash What you suggest is something that needs to be added. It will take some time. I will update this PR with it. |
…a field in the field control
|
@spalger it should be better now with the new commit
|
|
Looking very good, will take a deeper look later today. |
|
jenkins, test it |
|
@spalger I have two questions:
|
I don't think that's necessary. Just because the value is excluded doesn't mean that it would cause performance issues, and we probably shouldn't be discouraging users from using that field.
I think that it might make sense to hide disable the checkbox (with an explanation) if the field is in the |
|
Just for completeness - would it make sense that in the panel showing the records fields (e.g. search widget/discover) a writing appears "Note: this record might be incomplete as some fields are currently hidden in the configuration" if needs to? |
|
|
@jccq I think we're going to skip on the warning for now. The way I see it is that excluding a field from an index pattern is somewhat of an "admin" action, and simply viewing the document is more of a "user" action. I doubt much good would come from telling the user that fields were excluded; they would likely either ignore the warning or try to find a way to include them. @scampi very nice |
|
@spalger thanks ;o) The test fails because the ES port was already in use. Should I open an issue so that the test framework checks if the port is free ? |
|
@scampi no need, we are working to improve the isolation of our jenkins builds but sometimes the collide with others. |
|
i'm not sure if you got some notification @spalger , so just in case, your changes were merged. |
|
In order to iterate on this a bit I'm moving this to #5981 |







moved to #5981
close #4366
I am not sure if this PR is a complete solution for the issue, but I believe it is a part of it.
This PR adds a configuration on the index pattern level that allows to define which field to exclude using the source filtering API. There is a new tab in which you can set the JSON to specify what to exclude.
The fields that are actually retrieved are indicated on the
Fieldstab as an additional column: if it is retrieved, the row is checked.To test it:
countryindex and go to the Retrieved Fields tab. Exclude the description field from being retrieved. Add the following object to do so:{ "exclude": "description" }What is not provided in this PR but could be necessary: a way to display an excluded field for a document. Do you see this mandatory, or is the proposed solution good enough ?