Fixup/pr/5881 - Add source filtering#5981
Conversation
…a field in the field control
|
Talked with @rashidkpc about this and we agree that this is fine for now. If someone configures the index pattern to exclude that field then that's what they get. If it turns out that isn't sufficient we can cross that bridge. |
|
I tried the branch, and there is a little left-over from the previous PR.
@jbudz @spalger thanks for taking care of this. If you need me to do something, please ping me. |
|
Hi guys i would reccomend an option (To go with this new feature) to show the 'hidden" field when browsing the specific record e.g. in the result table. one should see something like "there are 3 fileds that have not been loaded by default e.g. "full description" "comment lists" etc.. and then a button that retrieves it for the operator that is interested in actually looking at them.. i feel this extra feature is really needed so not to "lose sight of data" (conceptually) ever. What do you think? |
|
I'm inclined to agree @jccq. Unfortunately it's much more difficult/complex to implement a solution where discover or other views have control over what fields are being filtered. |
98ce0c0 to
2476e3d
Compare
|
With the latest commits, this LGTM. Passing to @Bargs for final confirmation, since he's looked at this before. |
|
Given that this is a brand new feature, it probably deserves some doc updates now that we're responsible for documentation. Especially because even I don't understand where all this filtering is expected to take place. The original PR description mentions filtering in the dashboard, but that no longer appears to happen. Are there any places besides discover where this filtering is currently expected to take place? |
|
fixes will be done in #7402 |







In order to apply final fixes before merging, moving this from #5881 so we can iterate faster.
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 ?