# Ingest Attachment Plugin

**URL:** <https://discuss.elastic.co/t/ingest-attachment-plugin/94768>\
**Category:** Elasticsearch\
**Created:** [July 27, 2017, 10:08am UTC](https://discuss.elastic.co/t/ingest-attachment-plugin/94768 "2017-07-27T10:08:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikentyi](https://avatars.discourse-cdn.com/v4/letter/v/41988e/32.png) [@Vikentyi](https://discuss.elastic.co/u/Vikentyi)\
**Post date:** [July 27, 2017, 10:08am UTC](https://discuss.elastic.co/t/ingest-attachment-plugin/94768/1 "2017-07-27T10:08:29Z")

</div>

I have installed ingest attachment plugin to my elasticsearch server and I am using Java API. What should I do to index my document?  
I don't have any AttachmentProcessor in elasticsearch.jar.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 27, 2017, 3:58pm UTC](https://discuss.elastic.co/t/ingest-attachment-plugin/94768/2 "2017-07-27T15:58:57Z")

</div>

You don't need any `AttachmentProcessor` class in a client.

You need to:

- Define a pipeline which uses an attachment processor. You can do this using REST (curl or Kibana Dev Console)
- Send a binary document which content has been serialized to BASE64, which is something you can do with a "normal" index API operation.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 24, 2017, 4:12pm UTC](https://discuss.elastic.co/t/ingest-attachment-plugin/94768/3 "2017-08-24T16:12:26Z")

</div>

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