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] Display the queried part of the field in the document table #159831

Open
TimBosman opened this issue Jun 15, 2023 · 6 comments
Open

[Discover] Display the queried part of the field in the document table #159831

TimBosman opened this issue Jun 15, 2023 · 6 comments
Labels
enhancement New value added to drive a business result Feature:Discover Discover Application impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:medium Medium Level of Effort Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.

Comments

@TimBosman
Copy link

TimBosman commented Jun 15, 2023

Describe the feature:

I would like to see the part of the field that matches my query. Right now, we highlight the matching parts. Furthermore, we can specify the number of lines or view the full field, but it would be nice to see the surrounding of the matching part.

Describe a specific use case for the feature:

If you have a field with very big values, you either see the beginning of the field, or the full field. I would like to see the places where the documents match my query

@botelastic botelastic bot added the needs-team Issues missing a team label label Jun 15, 2023
@davismcphee davismcphee added Feature:Discover Discover Application enhancement New value added to drive a business result Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. and removed needs-team Issues missing a team label labels Jun 15, 2023
@elasticmachine
Copy link
Contributor

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

@davismcphee davismcphee added loe:needs-research This issue requires some research before it can be worked on or estimated impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. labels Jun 22, 2023
@davismcphee
Copy link
Contributor

@TimBosman Thanks for contributing the issue. We're curious to learn more about this request. Could you provide some detail about the use case and type of data you're working with? Things like character length of the fields you're working with or potentially a screenshot could be helpful here. Thanks!

@lukasolson
Copy link
Member

Related: #159391

@TimBosman
Copy link
Author

I am not able to share a screenshot here since this is protected data. However, I'm talking about a field that contains the full text of a scientific article with multiple pages. If we search this field on a certain query, we will always see the beginning of the field, or the full field. However we are only interested in the context of the hit.

@davismcphee
Copy link
Contributor

@TimBosman No problem on the screenshot, and thanks for the additional context 🙂 The #159391 issue @lukasolson linked to touches on this issue at a technical level, and we're reviewing the available options in Elasticsearch to see how we could better support this use case in Discover.

@lukasolson lukasolson added loe:medium Medium Level of Effort and removed loe:needs-research This issue requires some research before it can be worked on or estimated labels Aug 2, 2023
@TimBosman
Copy link
Author

Looking deeper into it, it seems that Elasticsearch itself is returning the part of the field that matches the query. Being able to just show this "highlight" response of Elasticsearch instead of the full "Field" response would be enough to help out here.

Screen.Recording.2023-08-24.at.14.19.03.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Discover Discover Application impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:medium Medium Level of Effort Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Projects
None yet
Development

No branches or pull requests

4 participants