# How do I import several files?

**URL:** <https://discuss.elastic.co/t/how-do-i-import-several-files/3344>\
**Category:** Elasticsearch\
**Created:** [September 17, 2010, 5:57am UTC](https://discuss.elastic.co/t/how-do-i-import-several-files/3344 "2010-09-17T05:57:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Burleigh](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@Burleigh](https://discuss.elastic.co/u/Burleigh)\
**Post date:** [September 17, 2010, 5:57am UTC](https://discuss.elastic.co/t/how-do-i-import-several-files/3344/1 "2010-09-17T05:57:10Z")

</div>

- deleted -

---

<div class="post-metadata">

**Author:** ![Ask\_Bjorn\_Hansen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ask_bjorn_hansen/32/2995_2.png) [@Ask\_Bjorn\_Hansen](https://discuss.elastic.co/u/Ask_Bjorn_Hansen)\
**Post date:** [September 18, 2010, 8:12pm UTC](https://discuss.elastic.co/t/how-do-i-import-several-files/3344/2 "2010-09-18T20:12:29Z")

</div>

On Sep 16, 10:57 pm, Burleigh [inco...@hotmail.com](mailto:inco...@hotmail.com) wrote:

> I can't believe there isn't a whitepaper for beginners that explains how to  
> use  
> this software. Anyway, I have a huge number of PDF files that I need to  
> either  
> directly index in a directory, or I can convert them out into Json docs, I  
> don't  
> care which; but what I can't find is the methodology used to import several  
> documents instead of just typing the data into the engine, as in the  
> examples.

Your question is a little confusing -- it sounds like you know what  
you need to do.

Convert the PDFs to text strings and submit them as JSON documents to  
the search engine.

- ask

---

<div class="post-metadata">

**Author:** ![Burleigh](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@Burleigh](https://discuss.elastic.co/u/Burleigh)\
**Post date:** [September 20, 2010, 10:05am UTC](https://discuss.elastic.co/t/how-do-i-import-several-files/3344/3 "2010-09-20T10:05:32Z")

</div>

- deleted -

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 20, 2010, 10:13am UTC](https://discuss.elastic.co/t/how-do-i-import-several-files/3344/4 "2010-09-20T10:13:57Z")

</div>

There is the REST index API documented here:  
[http://www.elasticsearch.com/docs/elasticsearch/rest\_api/index/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/index/). There is  
also a built in Java client fully documented on the site:  
[http://www.elasticsearch.com/docs/elasticsearch/java\_api/](http://www.elasticsearch.com/docs/elasticsearch/java_api/), and many client  
libraries written in different languages:  
[http://www.elasticsearch.com/products/](http://www.elasticsearch.com/products/).

-shay.banon

p.s. I know its very culture specific (one thing is one culture can be  
considered very rude in another), and in my several open source years I have  
learned not to judge what people say solely based on my cultural bias (and  
we all "suffer" from it), but I encourage people not to "shout" (uppercase)  
in the mailing list, and try and keep the discussion civil.

On Mon, Sep 20, 2010 at 12:05 PM, SumnerClaridge [incomex@hotmail.com](mailto:incomex@hotmail.com)wrote:

> You still didn't answer the question. HOW do I submit an entire  
> document, and more importantly, how do I submit thousands  
> of documents? What do I need to read, or what is the syntax  
> used to load the docs into the engine?
> 
> On Sep 18, 2:12 pm, Ask Bjørn Hansen [a...@develooper.com](mailto:a...@develooper.com) wrote:
> 
> > On Sep 16, 10:57 pm, Burleigh [inco...@hotmail.com](mailto:inco...@hotmail.com) wrote:
> > 
> > > I can't believe there isn't a whitepaper for beginners that explains  
> > > how to  
> > > use  
> > > this software. Anyway, I have a huge number of PDF files that I need  
> > > to  
> > > either  
> > > directly index in a directory, or I can convert them out into Json  
> > > docs, I  
> > > don't  
> > > care which; but what I can't find is the methodology used to import  
> > > several  
> > > documents instead of just typing the data into the engine, as in the  
> > > examples.
> > 
> > Your question is a little confusing -- it sounds like you know what  
> > you need to do.
> > 
> > Convert the PDFs to text strings and submit them as JSON documents to  
> > the search engine.
> > 
> > - ask

---

<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, 4:19am UTC](https://discuss.elastic.co/t/how-do-i-import-several-files/3344/5 "2017-07-06T04:19:11Z")

</div>


