# Native client or REST

**URL:** <https://discuss.elastic.co/t/native-client-or-rest/15383>\
**Category:** Elasticsearch\
**Created:** [January 23, 2014, 5:01pm UTC](https://discuss.elastic.co/t/native-client-or-rest/15383 "2014-01-23T17:01:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IronMike](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@IronMike](https://discuss.elastic.co/u/IronMike)\
**Post date:** [January 23, 2014, 5:01pm UTC](https://discuss.elastic.co/t/native-client-or-rest/15383/1 "2014-01-23T17:01:23Z")

</div>

I thought I understood this, but maybe not. I hope someone can shed some  
light on this.

I have to index tons of files and I would like to be able to query it from  
our web application written in javascript, all will be running on AWS EC2.  
Question: If I index the files using native JAVA API, will I be able to  
perform queries/searches from the web application via http/REST API?  
I am curious to know how people approach this? Note, I would prefer to work  
with Java, but willing to do something else if it makes more sense.

--  
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/58e6edbc-09b5-4375-a511-77b4c0b1a15b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/58e6edbc-09b5-4375-a511-77b4c0b1a15b%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [January 23, 2014, 5:19pm UTC](https://discuss.elastic.co/t/native-client-or-rest/15383/2 "2014-01-23T17:19:01Z")

</div>

> Question: If I index the files using native JAVA API, will I be able to  
> perform queries/searches from the web application via http/REST API?

Yes.

--  
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/CAO9cvUZKd-oWY%3DrZuhQgMeps85TL3qEfKvueFnH6mmDxHRi1nw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAO9cvUZKd-oWY%3DrZuhQgMeps85TL3qEfKvueFnH6mmDxHRi1nw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [January 23, 2014, 6:12pm UTC](https://discuss.elastic.co/t/native-client-or-rest/15383/3 "2014-01-23T18:12:24Z")

</div>

The native client is lower overhead but you have to use the same version the client as you do Elasticsearch and you should use the same JVM version as well. If you do java then those are the trade offs.

Sent from my iPhone

On Jan 23, 2014, at 9:19 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com) wrote:

> > Question: If I index the files using native JAVA API, will I be able to perform queries/searches from the web application via http/REST API?
> 
> ## Yes.
> 
> 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/CAO9cvUZKd-oWY%3DrZuhQgMeps85TL3qEfKvueFnH6mmDxHRi1nw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAO9cvUZKd-oWY%3DrZuhQgMeps85TL3qEfKvueFnH6mmDxHRi1nw%40mail.gmail.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/BF231D40-F1F9-48AC-84F1-9EEE7F8A1FC2%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/BF231D40-F1F9-48AC-84F1-9EEE7F8A1FC2%40gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:55am UTC](https://discuss.elastic.co/t/native-client-or-rest/15383/4 "2017-07-06T01:55:08Z")

</div>


