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
Dynamic es.resource.write fails to find nested field #362
Labels
Comments
To confirm, you are using a JSON input, correct? |
Correct. |
@aewhite Looks like the problem occurs on 2.0.x branch and it has been fixed in master. Can you please try the latest dev builds published for both 2.1 and 2.0 branch and report back? Thanks! |
costin
added a commit
that referenced
this issue
Jan 27, 2015
@aewhite ping... |
This appears resolved in the latest branch. |
Great. Closing the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given the dynamic configuration...
And a document like...
The load will fail with "Cannot find match for "{nested.field}". The work around is to either insert a dummy field before the target field or, if possible, re-order the nested sub fields.
I did manage to debug the issue down to
org.elasticsearch.hadoop.serialization.ParsingUtils#doFind
. In particular this section...I expect moving the
parser.nextToken()
to inside the null check block would solve my particular problem since that is what's eating the FIELD_NAME token, but I don't know if it would break something else.Edit: To clarify, if "field" is the first property inside the nested object, then the error is triggered. If "field" is the second or later field, it works as expected.
The text was updated successfully, but these errors were encountered: