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
You can no longer find out if any items have failed indexing from within the IBulkResponse
IBulkResponse
0.0.0.12 syntax:
var itemsWhichFailedToIndex = IBulkResponse.Items.Where(i => !i.OK)
Please advice how to fix this?
The text was updated successfully, but these errors were encountered:
I ran into this also yesterday. I've added an additional check of seeing if an Error exists also.
results.Items.Where(x => x != null && !x.OK && !String.IsNullOrWhiteSpace(x.Error))
So far it seems to work. Also, it's important to note that the index was being updated in my case even though OK was returning false.
Sorry, something went wrong.
e825efc
Looking for invalid items is now a lot easier:
var result = this._client.Bulk(b => b .Create<ElasticsearchProject>(i => i.Object(new ElasticsearchProject { Id = 123123 })) .Create<ElasticsearchProject>(i => i.Object(new ElasticsearchProject { Id = 123123 })) ); result.IsValid.Should().BeFalse(); result.Errors.Should().BeTrue(); result.ItemsWithErrors.Should().NotBeEmpty().And.HaveCount(1);
No branches or pull requests
You can no longer find out if any items have failed indexing from within the
IBulkResponse
0.0.0.12 syntax:
Please advice how to fix this?
The text was updated successfully, but these errors were encountered: