We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"." as field name yields array_index_out_of_bounds_exception
Indexing
Dev Tools:
POST index_name/_doc {".":"foo"}
Yields
{ "error": { "root_cause": [ { "type": "mapper_parsing_exception", "reason": "failed to parse" } ], "type": "mapper_parsing_exception", "reason": "failed to parse", "caused_by": { "type": "array_index_out_of_bounds_exception", "reason": "Index -1 out of bounds for length 0" } }, "status": 400 }
We could either index the document or yield a better error message.
Plugins Defaults in docker
Screenshots n/a
Host/Environment (please complete the following information):
Additional context n/a
The text was updated successfully, but these errors were encountered:
The exception is thrown here because subfields is empty in this case:
subfields
OpenSearch/server/src/main/java/org/opensearch/index/mapper/DocumentParser.java
Line 1045 in 0cde7ba
.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
"." as field name yields array_index_out_of_bounds_exception
Related component
Indexing
To Reproduce
Dev Tools:
Yields
Expected behavior
We could either index the document or yield a better error message.
Additional Details
Plugins
Defaults in docker
Screenshots
n/a
Host/Environment (please complete the following information):
Additional context
n/a
The text was updated successfully, but these errors were encountered: