# Rest Java Api - remove\_binary option in Attachment processor

**URL:** https://discuss.elastic.co/t/rest-java-api-remove-binary-option-in-attachment-processor/351287
**Category:** Elasticsearch
**Created:** [January 17, 2024, 2:42pm UTC](https://discuss.elastic.co/t/rest-java-api-remove-binary-option-in-attachment-processor/351287 "2024-01-17T14:42:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cpeninou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cpeninou/32/130867_2.png) [@cpeninou](https://discuss.elastic.co/u/cpeninou)
#### Post date: [January 17, 2024, 2:42pm UTC](https://discuss.elastic.co/t/rest-java-api-remove-binary-option-in-attachment-processor/351287/1 "2024-01-17T14:42:07Z")

</div>

Hello,  
Es version: 8.11.1

I'm trying to set the option remove\_binary for the Attachment processor to true since the default one is false by using the RestApi java, but this field is missing in the AttachmentProcessor.Builder.

Maybe I'm missing something or it is not implemented yet ?  
Is there any workaround except a curl request ?

Thanks in advance.

---

<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: [January 17, 2024, 3:05pm UTC](https://discuss.elastic.co/t/rest-java-api-remove-binary-option-in-attachment-processor/351287/2 "2024-01-17T15:05:09Z")

</div>

Welcome!

That's a missing part indeed.

I opened [Missing `remove_binary` option in the AttachmentProcessor · Issue #727 · elastic/elasticsearch-java · GitHub](https://github.com/elastic/elasticsearch-java/issues/727) to track this.

Thanks for the report!

As a workaround, I think you might need to fallback on using the LowLevel client instead... Just for creating the ingest pipeline of course.

---

<div class="post-metadata">

### Author: ![cpeninou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cpeninou/32/130867_2.png) [@cpeninou](https://discuss.elastic.co/u/cpeninou)
#### Post date: [January 17, 2024, 3:19pm UTC](https://discuss.elastic.co/t/rest-java-api-remove-binary-option-in-attachment-processor/351287/3 "2024-01-17T15:19:27Z")

</div>

Thanks for your feedback 🙂

---

<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: [February 14, 2024, 3:20pm UTC](https://discuss.elastic.co/t/rest-java-api-remove-binary-option-in-attachment-processor/351287/4 "2024-02-14T15:20:12Z")

</div>

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