# Example for ingest attachment plug in with CBOR format for indexing documents

**URL:** <https://discuss.elastic.co/t/example-for-ingest-attachment-plug-in-with-cbor-format-for-indexing-documents/66443>\
**Category:** Elasticsearch\
**Created:** [November 17, 2016, 6:40pm UTC](https://discuss.elastic.co/t/example-for-ingest-attachment-plug-in-with-cbor-format-for-indexing-documents/66443 "2016-11-17T18:40:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![radsan84](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@radsan84](https://discuss.elastic.co/u/radsan84)\
**Post date:** [November 17, 2016, 6:40pm UTC](https://discuss.elastic.co/t/example-for-ingest-attachment-plug-in-with-cbor-format-for-indexing-documents/66443/1 "2016-11-17T18:40:28Z")

</div>

Hi,  
I would like to index pdf documents. I installed ealsticsearch 5.0.1 and ingest attachment plug-in. I dont want to do base64 encode while indexing. So found that there is a CBOR format, in which base64 encode is not required. Could you please share example / code snippet for indexing pdf documents in CBOR format and to search its contents please ?

---

<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:** [November 17, 2016, 7:13pm UTC](https://discuss.elastic.co/t/example-for-ingest-attachment-plug-in-with-cbor-format-for-indexing-documents/66443/2 "2016-11-17T19:13:41Z")

</div>

It's not supported by ingest plugin.

---

<div class="post-metadata">

**Author:** ![radsan84](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@radsan84](https://discuss.elastic.co/u/radsan84)\
**Post date:** [November 18, 2016, 6:00am UTC](https://discuss.elastic.co/t/example-for-ingest-attachment-plug-in-with-cbor-format-for-indexing-documents/66443/3 "2016-11-18T06:00:06Z")

</div>

Hi David, Thanks for response.  
May i please ask which plug-in i need to install for indexing pdf without doing base64encode ? Also the code snippet for indexing the same will be helpful for us ..

---

<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:** [November 18, 2016, 8:48am UTC](https://discuss.elastic.co/t/example-for-ingest-attachment-plug-in-with-cbor-format-for-indexing-documents/66443/5 "2016-11-18T08:48:33Z")

</div>

I'm sorry but my answer was wrong.  
CBOR is supported in core and ingest plugin will deal with that OOTB.  
No other plugin required.

---

<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:** [December 16, 2016, 8:48am UTC](https://discuss.elastic.co/t/example-for-ingest-attachment-plug-in-with-cbor-format-for-indexing-documents/66443/6 "2016-12-16T08:48:35Z")

</div>

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