-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[ES|QL][Kibana request] Return _id by default #108398
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
Comments
Pinging @elastic/es-analytical-engine (Team:Analytics) |
We want to use this _id to do an extra call (after user's request) to get this row. Is the _id enough or do we need the _index too?
Also is this performant? |
The _id is index specific, so you'll probably want the (Smth like
I think the loading of the fields should be OK. Filtering-wise we can push |
Thanx @bpintea ❤️ |
|
I want to ➕ 1️⃣ this request, particularly having the |
Since you can get these with an explicit syntax I wonder if we can cover
this with default values in the box depending on your solution. I'm not
really sure whether than makes any sense though.
Another thing: users can write queries so they can remove the _id and
_index. Or remap it. It's all valid esql. Do you want some way to prevent
that? Like an option that says "If the user tries to modify these fields
reject the query."
…On Wed, May 15, 2024, 9:16 AM Sander Philipse ***@***.***> wrote:
I want to ➕ 1️⃣ this request, particularly having the _index and _id
populated by default would be really useful for Search use cases where we
don't usually care about timestamps as much but do really care about where
a document came from in Discover.
—
Reply to this email directly, view it on GitHub
<#108398 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUXIVPHXCFHIG46O45G6DZCNNZHAVCNFSM6AAAAABHMNDWCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJSGQ4TANJXHE>
.
You are receiving this because you are on a team that was mentioned.Message
ID: ***@***.***>
|
Good point, I was hoping that they won't 😂 It makes sense to not allow them to modify them otherwise we wont be able to do the stuff we want |
I am closing this as we have managed to walk around it and it doesnt seem to be necessary for now. We can always reopen and re-discuss if the need comes |
Description
In #108305 we want to have a way to return by default timeseries sorted by a given timefield. This is something that I am expecting to work like that across kibana as almost all applications want to render their data sorted by time (Lens, Dashboards, Solutions, Discover)
There is an extra request for Discover though. We would like to return by default the _id of the document. Atm we have it with the
metadata _id
function but this is not very user friendly. We want the user to typefrom logs
and get the table + an extra column, the _id. This is important for Discover as we can use this id to retrieve more information. For example:This should not change the current behavior of ES|QL. I am expecting to be a Discover mode where we can get a little bit different defaults. I don't expect that this meta information will be important everywhere in Kibana (for example we don't need the id in a visualization). So I would like to differentiate it from the sort by timestamp request
The text was updated successfully, but these errors were encountered: