-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] null_pointer_exception when requesting with search_after on a null field #14825
Comments
Looks like a bug. Would you have a moment to try and write a YAML REST test for this? https://github.com/opensearch-project/OpenSearch/blob/main/TESTING.md#testing-the-rest-layer |
I tried writing a YAML REST test, heavily inspired from https://github.com/opensearch-project/OpenSearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/test/search/90_search_after.yml, I did not run the test so I hope the syntax is correct:
|
Try running it? :) |
Describe the bug
OpenSearch returns a 500 Internal server error when search_after contains a null field and "track_total_hits:false". This is the error:
Related component
Search
To Reproduce
POST /_bulk
Expected behavior
OpenSearch should return the documents.
Additional Details
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: