# Indexing pdf and word files

**URL:** <https://discuss.elastic.co/t/indexing-pdf-and-word-files/168163>\
**Category:** Elasticsearch\
**Created:** [February 13, 2019, 7:57am UTC](https://discuss.elastic.co/t/indexing-pdf-and-word-files/168163 "2019-02-13T07:57:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronyarmon](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@ronyarmon](https://discuss.elastic.co/u/ronyarmon)\
**Post date:** [February 13, 2019, 7:57am UTC](https://discuss.elastic.co/t/indexing-pdf-and-word-files/168163/1 "2019-02-13T07:57:02Z")

</div>

Hello,  
I know it was asked before but I still need your advice about indexing word documents and pdfs. I read the [tutorial](https://www.elastic.co/guide/en/elasticsearch/plugins/current/using-ingest-attachment.html) and installed the Attachment Processor Plugin but I can't figure out from the tutorial how to load documents (not attachment) from a specified folder.

Say I stored document.doc in document\_dir directory.  
Can you please provide the PUT request to index this document in an index named index\_name?

Thanks

---

<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:** [February 13, 2019, 8:53am UTC](https://discuss.elastic.co/t/indexing-pdf-and-word-files/168163/2 "2019-02-13T08:53:05Z")

</div>

You can't upload a file to elasticsearch. Elasticsearch can not read a folder which contains files you want to index.

Have a look at FSCrawler project. It does that.

---

<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:** [March 13, 2019, 8:53am UTC](https://discuss.elastic.co/t/indexing-pdf-and-word-files/168163/3 "2019-03-13T08:53:09Z")

</div>

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