-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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][Search Search] Discrepancy in results in Discover and devtools when sorting and size present #92843
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
Pinging @elastic/kibana-app-services (Team:AppServices) |
@majagrubic Where is the bug here? |
@majagrubic Could you please elaborate more about the discrepancy you're seeing? |
I thought
Devtools response:
Discover response:
Why this discrepancy? |
Edit: Should have checked the code first. @majagrubic I thought this was related to the Edit2: I think I found it:
I guess discover should change it's own logic at some point. @timroes do we track this somewhere? I vaguely remember plans to change how Discover fetches hits plus aggregations, maybe it's part of that, but just to make sure. |
@flash1293 should be part of this task #69134 |
(EDIT: I've updated my response since it was written a bit confusing) As Matthias pointed out the work to change Discover logic is tracked in #69134 I've left a rather detailed description how it should work in #69134 (comment). And just to recap on the descripency (basically what Joe said): Dev tools are sending the query as it is, the default behavior in ES is not to track hits anymore. While using search source we by default still set the The So you can already set Also just for additional clarification: Since there is no issue here present, I'll close this, but please let me know if there's anything still unclear. |
Kibana version:
7.12, testing on cloud
We have large dataset, currently returning 3156517 hits. When sorting on a column, Discover sends a
size
parameter, together with asort
parameter, eg:In the response, all hits are returned, disregarding the
size
parameter:Due to this, sort appears broken. When executing the same request from the devtools console, only 1000 hits are returned, as I would expect.
Full request:
Where is this discrepancy coming from? I assume something in the search_source?
I wonder if we should switch off sorting if this is something we can't support atm?
The text was updated successfully, but these errors were encountered: