-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ScriptFile parameter for NEST UpdateDescriptor #1459
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
Added! Nice catch @vineet85 and thanks again for reporing. |
Thanks @gmarz - Any idea when v1.5.2 will be publicly available? |
Very soon...debating whether to release 1.5.2 or go straight to 1.6 (pending #1453). |
This doesn't seem to be working for me using the newly-released 1.6. Should |
Argh, yes, you're right @CezarCretu. This is my bad...we'll fix and release a 1.6.1 asap. |
FYI I opened #1463 for this. |
Re: #1456
Can this be added to the BulkUpdateDescriptor as well?
https://github.com/elastic/elasticsearch-net/blob/4fcecae93dcf16a4ff7e110135da81eed409dda5/src/Nest/DSL/Bulk/BulkUpdateDescriptor.cs
Eg:-
*BulkDescriptor childBulkDescriptor = new BulkDescriptor();
for (int i = 0; i < searchResponse.Hits.Count(); i++)
{
childBulkDescriptor.Update<NestedDocument, object>(u => u
.Type("document")
.Id(searchResponse.Hits.ElementAt(i).Id) // document id
.ScriptFile("my_script")
.Params(x => x.Add("field_id", fieldIdToUpdate).Add("field_value",
fieldValue))
.RetriesOnConflict(4)
);
}
Thanks,
Vineet
The text was updated successfully, but these errors were encountered: