Skip to content
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

[indexPattern/flattenSearchResponse] flatten conflicting objects #3584

Merged
merged 1 commit into from
Apr 15, 2015
Merged

[indexPattern/flattenSearchResponse] flatten conflicting objects #3584

merged 1 commit into from
Apr 15, 2015

Conversation

jdve
Copy link

@jdve jdve commented Apr 13, 2015

When flattening hits containing conflicting types, continue to
recursively flatten the object if possible, rather than simply ending
with a complex object. This fixes a problem when a conflicting type
effectively "hides" nested fields. For example, if "a" is conflicted
(because sometimes it's an object and sometimes it's a native value),
without this change "a.x" will be hidden from the results, even though
it's only an object-level conflict. The "a.x" field itself should
appear in the flatten hit as a separate field.

Rebased version of #3457 after #2723 (sorry, accidentally deleted my original project).

/cc @rashidkpc, @spalger

@rashidkpc
Copy link
Contributor

Tests failing

When flattening hits containing conflicting types, continue to
recursively flatten the object if possible, rather than simply ending
with a complex object.  This fixes a problem when a conflicting type
effectively "hides" nested fields.  For example, if "a" is conflicted
(because sometimes it's an object and sometimes it's a native value),
without this change "a.x" will be hidden from the results, even though
it's only an object-level conflict.  The "a.x" field itself should
appear in the flatten hit as a separate field.
@jdve
Copy link
Author

jdve commented Apr 14, 2015

@rashidkpc all fixed

@jdve jdve changed the title [indexPattern/flattenSearchResponse] flatten all objects [indexPattern/flattenSearchResponse] flatten conflicting objects Apr 14, 2015
@spalger
Copy link
Contributor

spalger commented Apr 15, 2015

LGTM! Thanks @jdve!

spalger added a commit that referenced this pull request Apr 15, 2015
[indexPattern/flattenSearchResponse] flatten conflicting objects
@spalger spalger merged commit 621511c into elastic:master Apr 15, 2015
@spalger spalger mentioned this pull request Apr 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants