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


(Ada) #1

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


(David Pilato) #2

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


(Ada) #3

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


(system) #4

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