# Setting up server and accessing it

**URL:** <https://discuss.elastic.co/t/setting-up-server-and-accessing-it/4537>\
**Category:** Elasticsearch\
**Created:** [June 2, 2011, 7:10pm UTC](https://discuss.elastic.co/t/setting-up-server-and-accessing-it/4537 "2011-06-02T19:10:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![greekscala](https://avatars.discourse-cdn.com/v4/letter/g/c2a13f/32.png) [@greekscala](https://discuss.elastic.co/u/greekscala)\
**Post date:** [June 2, 2011, 7:10pm UTC](https://discuss.elastic.co/t/setting-up-server-and-accessing-it/4537/1 "2011-06-02T19:10:42Z")

</div>

Hello es community!

I just startet using ES, and I am using Spring to get a Client Node.  
But I am not satisfied with this. I think it will be better to  
communicate  
to ES via its web api, its more flexible if you have to move the ES  
server.

I would like to know how your configuration is and how you arre  
communicating  
with an ES instance (e.g. what Java libs are used, are there some  
interesting tools).  
Would be great if someone can share his experience. Because I dont  
know how  
to realy setup a REST communication.

with best regards

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [June 2, 2011, 11:18pm UTC](https://discuss.elastic.co/t/setting-up-server-and-accessing-it/4537/2 "2011-06-02T23:18:59Z")

</div>

> But I am not satisfied with this.

what is your problem with the provided Java API?

> its more flexible if you have to move the ES server.

What do you mean here?

---

<div class="post-metadata">

**Author:** ![greekscala](https://avatars.discourse-cdn.com/v4/letter/g/c2a13f/32.png) [@greekscala](https://discuss.elastic.co/u/greekscala)\
**Post date:** [June 3, 2011, 11:29am UTC](https://discuss.elastic.co/t/setting-up-server-and-accessing-it/4537/3 "2011-06-03T11:29:25Z")

</div>

Hello Karussell,

My problem is I do not have any experience with REST communication.  
Or can I use the Java API too, to communicate with ES that is not  
on the same server as my app? This is not clear to me.

best regards

On 3 Jun., 01:18, Karussell [tableyourt...@googlemail.com](mailto:tableyourt...@googlemail.com) wrote:

> > But I am not satisfied with this.
> 
> what is your problem with the provided Java API?
> 
> > its more flexible if you have to move the ES server.
> 
> What do you mean here?

---

<div class="post-metadata">

**Author:** ![Curtis\_Caravone](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@Curtis\_Caravone](https://discuss.elastic.co/u/Curtis_Caravone)\
**Post date:** [June 3, 2011, 12:58pm UTC](https://discuss.elastic.co/t/setting-up-server-and-accessing-it/4537/4 "2011-06-03T12:58:34Z")

</div>

You can use the Java API to communicate with an elasticsearch cluster on  
servers separate from your app. Your application can create a Client object  
that communicates with the cluster using the native elasticsearch transport  
mechanism. This is described in the guide here:  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html).

I would recommend this method if you have no experience with REST / HTTP  
communication.

Curtis

On Fri, Jun 3, 2011 at 4:29 AM, greekscala [hellectronic@gmail.com](mailto:hellectronic@gmail.com) wrote:

> Hello Karussell,
> 
> My problem is I do not have any experience with REST communication.  
> Or can I use the Java API too, to communicate with ES that is not  
> on the same server as my app? This is not clear to me.
> 
> best regards
> 
> On 3 Jun., 01:18, Karussell [tableyourt...@googlemail.com](mailto:tableyourt...@googlemail.com) wrote:
> 
> > > But I am not satisfied with this.
> > 
> > what is your problem with the provided Java API?
> > 
> > > its more flexible if you have to move the ES server.
> > 
> > What do you mean here?

---

<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:04am UTC](https://discuss.elastic.co/t/setting-up-server-and-accessing-it/4537/5 "2017-07-06T04:04:44Z")

</div>


