-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
top_hits
fails with Null Pointer Exception when child of random_sampler agg
#110134
Comments
Pinging @elastic/ml-core (Team:ML) |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
@dgieselaar is the original finder of this bug. @dgieselaar it doesn't seem like the request has |
@benwtrent no, my head is a mess today. copied the wrong request. Here is the right one:
|
Thank you @dgieselaar ! I was able to replicate. It is repeatable with some very simple text data.
|
There are two causes here: One, with probility is
So, that needs to accept scorable and pass it to the sub. But for
|
Elasticsearch Version
any
Installed Plugins
No response
Java Version
bundled
OS Version
any
Problem Description
When I use the top_hits aggregation as a child of a random_sampler aggregation, it triggers a shard request failure with an NPE. It only throws an NPE when sort is not defined - if I add it (e.g. { "sort": { "@timestamp": "desc" } }) it returns results.
Steps to Reproduce
Logs (if relevant)
Details
The text was updated successfully, but these errors were encountered: