-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Question: ElasticsearchClient.Bulk with object array containing Deserialized JSON #1464
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
Comments
@JamieDixon I can't quite reproduce this- works fine for me. Can you share the string ( |
@gmarz The document string is coming from a test and so it looks like |
Hmm, okay. Wanted to make sure it didn't contain invalid json or anything funky that would throw off serialization. Still can't reproduce this. I'm going to add a test, maybe you can take a look at it and see if you can get it to fail/repro? |
Thanks. I'll take a look once you've added the test. Cheers for the help. |
^^ @JamieDixon. The expected json is in Issue1464.json. |
Your tests pass just fine. The only possible difference I can see at the moment is the version of elastic search. We're using 1.1.1 with lucene 4.7. Perhaps that makes a difference? |
Ok, I'm getting somewhere now. I've got it working but I don't really know why the broken version doesn't work. Here's the differences: ##Broken
##Working
The working version is using |
Okay, now that makes sense...this is a difference in the serializer that's being used.
When This is possibly a bug in the However, if you're already using NEST ( |
@gmarz Thanks for this analysis. Any suggestions on how we get the IBulkResponse object from the Raw.Bulk response. Another observation: This fails too with the same deserialization issues.
|
When you call:
You need to call |
Hi there.
I'm trying to use the bulk API and am hitting a problem with the way dynamic entries are being handled. It looks like it's a serialization issue.
Given the following:
Here's two examples, one that works as expected and one that doesn't:
Working
Not working
In the second example, when we call:
var bulkResponse = client.Bulk(bulkEntries);
The response looks like:
I'm probably just doing something wrong. Any pointers would be appreciated.
Thank you.
The text was updated successfully, but these errors were encountered: