Setting up server and accessing it


(greekscala) #1

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


(Karussell) #2

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?


(greekscala) #3

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 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?


(Curtis Caravone) #4

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:
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 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 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?


(system) #5