# Upload/index document to Elastic Search

**URL:** <https://discuss.elastic.co/t/upload-index-document-to-elastic-search/16288>\
**Category:** Elasticsearch\
**Created:** [March 11, 2014, 12:53pm UTC](https://discuss.elastic.co/t/upload-index-document-to-elastic-search/16288 "2014-03-11T12:53:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Sandeep](https://discuss.elastic.co/u/Sandeep)\
**Post date:** [March 11, 2014, 12:53pm UTC](https://discuss.elastic.co/t/upload-index-document-to-elastic-search/16288/1 "2014-03-11T12:53:59Z")

</div>

How can I upload/index PDF/HTML/XML format documents to Elastic Search.

---

<div class="post-metadata">

**Author:** ![Prashant\_Pal](https://avatars.discourse-cdn.com/v4/letter/p/b77776/32.png) [@Prashant\_Pal](https://discuss.elastic.co/u/Prashant_Pal)\
**Post date:** [March 12, 2014, 9:53am UTC](https://discuss.elastic.co/t/upload-index-document-to-elastic-search/16288/2 "2014-03-12T09:53:44Z")

</div>

Use Mapper attachments plugin to index the attachement type docs in ES.  
[https://github.com/elasticsearch/elasticsearch-mapper-attachments](https://github.com/elasticsearch/elasticsearch-mapper-attachments)

---

<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:** [March 14, 2014, 10:50am UTC](https://discuss.elastic.co/t/upload-index-document-to-elastic-search/16288/3 "2014-03-14T10:50:23Z")

</div>

If you are a Java developer, you could use Apache Tika.  
This is what I'm doing here: [https://github.com/dadoonet/fsriver/blob/master/src/main/java/fr/pilato/elasticsearch/river/fs/river/FsRiver.java#L689](https://github.com/dadoonet/fsriver/blob/master/src/main/java/fr/pilato/elasticsearch/river/fs/river/FsRiver.java#L689)

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

Le 14 mars 2014 à 11:35:26, Sandeep ([sandeep.test.id@gmail.com](mailto:sandeep.test.id@gmail.com)) a écrit:

How can I upload/index PDF/HTML/XML format documents to Elastic Search.

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/Upload-index-document-to-Elastic-Search-tp4051542.html](http://elasticsearch-users.115913.n3.nabble.com/Upload-index-document-to-Elastic-Search-tp4051542.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
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/1394542439478-4051542.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1394542439478-4051542.post%40n3.nabble.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.5322deef.2eb141f2.1ccf%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5322deef.2eb141f2.1ccf%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:43am UTC](https://discuss.elastic.co/t/upload-index-document-to-elastic-search/16288/4 "2017-07-06T01:43:09Z")

</div>


