# Index binary files

**URL:** https://discuss.elastic.co/t/index-binary-files/17266
**Category:** Elasticsearch
**Created:** [April 29, 2014, 3:40pm UTC](https://discuss.elastic.co/t/index-binary-files/17266 "2014-04-29T15:40:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![benjelloun](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@benjelloun](https://discuss.elastic.co/u/benjelloun)
#### Post date: [April 29, 2014, 3:40pm UTC](https://discuss.elastic.co/t/index-binary-files/17266/1 "2014-04-29T15:40:59Z")

</div>

hello,

I installed ElasticSearch, its work good i can index and search xml and  
json content using Dev HTTP Client.  
I need your help to index binary files in elasticsearch then search for  
them by content.  
I added mapper-attachements to elastic search but what i dont know is how  
to specify the folder of pdf or docx files to index it. something like  
base64 or i dont know.  
Thanks for helping me.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/787f6815-408a-4ef7-bfd3-a5ee6cc02798%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/787f6815-408a-4ef7-bfd3-a5ee6cc02798%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![radu\_gheorghe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe/32/556_2.png) [@radu\_gheorghe](https://discuss.elastic.co/u/radu_gheorghe)
#### Post date: [April 30, 2014, 10:05am UTC](https://discuss.elastic.co/t/index-binary-files/17266/2 "2014-04-30T10:05:00Z")

</div>

Hello,

Normally, you would send indexing requests to the REST API with the stuff  
you want Elasticsearch to index:

> **[Elastic — The Search AI Company](https://www.elastic.co)**
>
> Power insights and outcomes with The Elastic Search AI Platform. See into your data and find answers that matter with enterprise solutions designed to help you accelerate time to insight. Try Elastic ...

If you want Elasticsearch to automatically fetch files from the file system  
for you, have a look at David's FileSystem River:

> **[GitHub - dadoonet/fscrawler: Elasticsearch File System Crawler (FS Crawler)](https://github.com/dadoonet/fscrawler)**
>
> Elasticsearch File System Crawler (FS Crawler)

## Best regards, Radu

Performance Monitoring \* Log Analytics \* Search Analytics  
Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)

On Tue, Apr 29, 2014 at 6:40 PM, anass benjelloun [anass.bnj@gmail.com](mailto:anass.bnj@gmail.com)wrote:

> hello,
> 
> I installed Elasticsearch, its work good i can index and search xml and  
> json content using Dev HTTP Client.  
> I need your help to index binary files in elasticsearch then search for  
> them by content.  
> I added mapper-attachements to Elasticsearch but what i dont know is how  
> to specify the folder of pdf or docx files to index it. something like  
> base64 or i dont know.  
> Thanks for helping me.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/787f6815-408a-4ef7-bfd3-a5ee6cc02798%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/787f6815-408a-4ef7-bfd3-a5ee6cc02798%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/787f6815-408a-4ef7-bfd3-a5ee6cc02798%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/787f6815-408a-4ef7-bfd3-a5ee6cc02798%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAHXA0\_2UQpB63eye\_Yii0KiGYXiMj8Q6v3swRrxxYNk5jiMxpQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHXA0_2UQpB63eye_Yii0KiGYXiMj8Q6v3swRrxxYNk5jiMxpQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![benjelloun](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@benjelloun](https://discuss.elastic.co/u/benjelloun)
#### Post date: [May 6, 2014, 3:30pm UTC](https://discuss.elastic.co/t/index-binary-files/17266/3 "2014-05-06T15:30:24Z")

</div>

Hello again,

thanks for your answer.  
But my probleme is how to specify the folder which have many documents to  
index all of these document.  
and i tested already indexing pdf file with giving base64 content and that  
didn't work.

Best regards,  
Anass BENJELLOUN

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/cf373e11-f548-4b62-9692-e6fe79888cc2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cf373e11-f548-4b62-9692-e6fe79888cc2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [May 6, 2014, 3:32pm UTC](https://discuss.elastic.co/t/index-binary-files/17266/4 "2014-05-06T15:32:38Z")

</div>

Hard to tell without details of what you did so far and what did not work.

May be you could start describing all the steps from the beginning (provide versions for all component you are using as well)?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 6 mai 2014 à 17:30:28, anass benjelloun ([anass.bnj@gmail.com](mailto:anass.bnj@gmail.com)) a écrit:

Hello again,

thanks for your answer.  
But my probleme is how to specify the folder which have many documents to index all of these document.  
and i tested already indexing pdf file with giving base64 content and that didn't work.

## Best regards, Anass BENJELLOUN

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/cf373e11-f548-4b62-9692-e6fe79888cc2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cf373e11-f548-4b62-9692-e6fe79888cc2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.53690096.b03e0c6.5c36%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53690096.b03e0c6.5c36%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [July 6, 2017, 1:31am UTC](https://discuss.elastic.co/t/index-binary-files/17266/5 "2017-07-06T01:31:19Z")

</div>


