Hot to represent pipeline in Java API for ingest-attachment?

I was using mapper-attachments and index PDF documents using JAVA bulk load API. Now switching to Ingest-attachment. All I see from elasticsearch website is this example:

PUT my_index/my_type/my_id?pipeline=attachment
{
"data": "e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0="
}

I believe this should be done using the UpdateRequest(my-index, my-type, my-id) but not sure how to represent the portion (?pipeline=attachment) in this request?

Thanks,
Ada

Have a look at IndexRequest instead. It's not supported for UpdateRequest.
BulkRequest also supports it.

great... thank you very much for quick response... let me try

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.