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

[Discover] Sort by fieldname of nested fields. #111923

Open
tmitanitky opened this issue Sep 13, 2021 · 8 comments
Open

[Discover] Sort by fieldname of nested fields. #111923

tmitanitky opened this issue Sep 13, 2021 · 8 comments
Labels
Feature:Discover Discover Application Feature:FieldFormatters impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph)
Projects

Comments

@tmitanitky
Copy link

When expanding a document in Discover, non-nested fields are sorted by their field names.
When toggling the field details of a nested field, however, the fields in the nested field are not sorted by their names. Since the order is the same across all documents, it is assumed to reflect some internal order.

It would be helpful to find a specific field if the fields in nested field were sorted and displayed.

@botelastic botelastic bot added the needs-team Issues missing a team label label Sep 13, 2021
@timroes timroes added Feature:Discover Discover Application Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) labels Sep 13, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Sep 13, 2021
@kibanamachine kibanamachine added this to Inbox in Discover Sep 13, 2021
@timroes
Copy link
Contributor

timroes commented Sep 13, 2021

Just for clarification: Do you mean inside the "Table" tab or inside the "JSON" tab of a document?

@tmitanitky
Copy link
Author

I intended inside the "Table" tab.
Now I checked to find the order in the "JSON" tab seems to be the same as that of the Table tab.

@majagrubic majagrubic self-assigned this Oct 4, 2021
@majagrubic
Copy link
Contributor

majagrubic commented Oct 4, 2021

Is this referring to nested fields or multi-fields? What does "order is the same across all documents" mean?

@majagrubic
Copy link
Contributor

Also, we truncate the display of nested fields, so in a case of a many items in an array with a lot of properties, you still wouldn't be able to see much, unless you go to the JSON view.

Eg. table view:
Screenshot 2021-10-04 at 14 40 58

vs JSON view of the same document:
Screenshot 2021-10-04 at 14 42 43

so I'm not sure how beneficial this would be. Maybe I'm missing something.

@tmitanitky
Copy link
Author

Referring to nested fields. I'm sorry it's unclear.

I attach sample images. These are from "Table" tabs of "Expanded document" in "Discovery" and toggled the details.

The displayed order of nested fields are not sorted. ('RXE' comes in the 4th place and again in the 7th place apartly. If sorted, the displayed order might be [ORC.Enter.. ORC.Enter, ORC.Place, RXE.Dispense, RXE.Give.., TQ1.Service.., TQ1.SetId..])
"Order is the same across all documents" means that the unsorted order for some reason seems to be common among documents in the index. (The orders are same in different documents)

If it is sorted, it will be easier to find a specific field, especially when there is multi-level nesting like this.

Thanks

image
image

@tmitanitky
Copy link
Author

The order is also not sorted in JSON tab.

image

@majagrubic
Copy link
Contributor

After having a look at this, I think this would be best implemented on an index pattern, in one of the formatters. Going to pass this on to @elastic/kibana-app-services for their opinion on this.

@majagrubic majagrubic removed their assignment Oct 15, 2021
@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Discover Discover Application Feature:FieldFormatters impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph)
Projects
No open projects
Development

No branches or pull requests

6 participants