Using custom script engine in Elasticclient 8

Hello
We are updating our code from NEST to elastic client. We have a custom written script engine in Java for indexing documents to elasticsearch. But we realised in elasticclient there is no way to pass script names with bulk index operations. I have tried with storedScript as well, it is not redirecting the call to elasticcilent.
So I want to know how can we perform bulk update operations with our custom script engine.

Thanks

You can’t pass custom script names in bulk indexing with the new client. Use UpdateRequest with an inline script in bulk or call the update API separately for your custom engine.