# How can I save documents like docx, pdf, xls and other microsoft documents in elasticsearch

**URL:** <https://discuss.elastic.co/t/how-can-i-save-documents-like-docx-pdf-xls-and-other-microsoft-documents-in-elasticsearch/83424>\
**Category:** Elasticsearch\
**Created:** [April 24, 2017, 2:32pm UTC](https://discuss.elastic.co/t/how-can-i-save-documents-like-docx-pdf-xls-and-other-microsoft-documents-in-elasticsearch/83424 "2017-04-24T14:32:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonal410](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sonal410/32/17825_2.png) [@sonal410](https://discuss.elastic.co/u/sonal410)\
**Post date:** [April 24, 2017, 2:32pm UTC](https://discuss.elastic.co/t/how-can-i-save-documents-like-docx-pdf-xls-and-other-microsoft-documents-in-elasticsearch/83424/1 "2017-04-24T14:32:49Z")

</div>

Is their any way to add microsoft documents to elasticsearch and do the search on the documnets

---

<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:** [April 24, 2017, 3:29pm UTC](https://discuss.elastic.co/t/how-can-i-save-documents-like-docx-pdf-xls-and-other-microsoft-documents-in-elasticsearch/83424/3 "2017-04-24T15:29:31Z")

</div>

ingest-attachment plugin is built for that.

Have also at FSCrawler project in case it helps.

---

<div class="post-metadata">

**Author:** ![RD17Ambar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rd17ambar/32/17699_2.png) [@RD17Ambar](https://discuss.elastic.co/u/RD17Ambar)\
**Post date:** [April 26, 2017, 2:05pm UTC](https://discuss.elastic.co/t/how-can-i-save-documents-like-docx-pdf-xls-and-other-microsoft-documents-in-elasticsearch/83424/4 "2017-04-26T14:05:54Z")

</div>

Hello! If you want quick and dirty solution then as @dadoonet says 'ingest-attachment' is best solution for you. But in some cases it will not work

```
The basic issues are:

* The overhead when converting binary stream to BASE64 is about 30%
* Storing source files data in ES is waaay too expensive and useless, even if you store it separately and exclude it from the index (especially in BASE64 string format)

```

Read this post to get more details [https://blog.ambar.cloud/ingest-attachment-plugin-for-elasticsearch-should-you-use-it/](https://blog.ambar.cloud/ingest-attachment-plugin-for-elasticsearch-should-you-use-it/)

---

<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:** [May 24, 2017, 2:18pm UTC](https://discuss.elastic.co/t/how-can-i-save-documents-like-docx-pdf-xls-and-other-microsoft-documents-in-elasticsearch/83424/5 "2017-05-24T14:18:39Z")

</div>

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