Skip to content

Handle nested arrays in field retrieval. #60940

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

Merged
merged 1 commit into from
Aug 11, 2020

Conversation

jtibshirani
Copy link
Contributor

We accept _source values with multiple levels of arrays, such as
"field": [[[1, 2]]]. This PR ensures that field retrieval can handle nested
arrays by unwrapping the arrays before parsing the values.

Fixes #60743.

@jtibshirani jtibshirani added >bug :Search/Search Search-related issues that do not fall into other categories v8.0.0 v7.10.0 labels Aug 10, 2020
We accept _source values with multiple levels of arrays, such as
`"field": [[[1, 2]]]`. This PR ensures that field retrieval can handle nested
arrays by unwrapping the arrays before parsing the values.
@jtibshirani jtibshirani marked this pull request as ready for review August 11, 2020 00:57
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Search)

@elasticmachine elasticmachine added the Team:Search Meta label for search team label Aug 11, 2020
@jtibshirani jtibshirani requested review from nik9000 and astefan August 11, 2020 01:14
@jtibshirani jtibshirani merged commit b2a9466 into elastic:master Aug 11, 2020
@jtibshirani jtibshirani deleted the array-value branch August 11, 2020 16:13
jtibshirani added a commit to jtibshirani/elasticsearch that referenced this pull request Aug 11, 2020
We accept _source values with multiple levels of arrays, such as
`"field": [[[1, 2]]]`. This PR ensures that field retrieval can handle nested
arrays by unwrapping the arrays before parsing the values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v7.10.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fields API fails to return values in an array of objects
4 participants