-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
IndexOutOfBoundsException when try to map inner hits with no results returned #1997
Comments
Maybe, this is thrown out here: |
@AntonLGVS the stacktrace is clear enough to know what the root cause is. I have already created a pull request and fixed this problem. |
…lts returned. Original Pull Request #1998 Closes #1997 Co-authored-by: Peter-Josef Meisch <[email protected]>
…lts returned. Original Pull Request #1998 Closes #1997 Co-authored-by: Peter-Josef Meisch <[email protected]> (cherry picked from commit 49324a3)
backported to 4.3. Did not backport to 4.2 and 4.1 because the test cannot be backported there as |
IMO we should adjust the test for 4.2, 4.1 because the issue also exists in these versions. |
We could use a nested query with inner hits [1] instead of collapse to test the issue. [1] https://www.elastic.co/guide/en/elasticsearch/reference/7.16/inner-hits.html#nested-inner-hits |
Can you please cherrypick the commit from 4.3 to 4.2 and adjust the test then? And then further cherrypick from 4.2 to 4.1? |
Sure will do that tomorrow. |
Backported to 4.2.x and 4.1.x. |
thanks a lot |
…lts returned. Original Pull Request #1998 Closes #1997 Co-authored-by: Peter-Josef Meisch <[email protected]> (cherry picked from commit 49324a3)
Configuring
inner_hits
with a size of 0 will result in anIndexOutOfBoundsException
when mapping inner hits.The text was updated successfully, but these errors were encountered: