Multiple cluster

Hey,

i'm using ElasticSearch for Fulltextsearch.
Now there is the problem, that i want to have a TransportClient to 2
different ElasticSearch Clusters. But i have no idea to solve this problem.

Is there any possibility

Thanks for Help

I would create two different TransportClients and specify a different
cluster.name in the individual settings.

--
Ivan

On Fri, Jun 15, 2012 at 6:52 AM, Henri K. hknochi@googlemail.com wrote:

Hey,

i'm using Elasticsearch for Fulltextsearch.
Now there is the problem, that i want to have a TransportClient to 2
different Elasticsearch Clusters. But i have no idea to solve this problem.

Is there any possibility

Thanks for Help

Ok i have forgotten to say, it is planned as a Controller.

the Application should connect to this controller and this should decide
which of the both clusters should be used.

i hope this description is much more better

Am Freitag, 15. Juni 2012 18:11:48 UTC+2 schrieb Ivan Brusic:

I would create two different TransportClients and specify a different
cluster.name in the individual settings.

Now you are getting into more of an internal design question than an
Elasticsearch question.

AFAIK, each TransportClient is tied to a specific cluster via the
settings. You would need to maintain a pool of TransportClient
instances yourself. You can have some type of Factory/Provider class
that controls which TransportClient is returned.

--
Ivan

On Fri, Jun 15, 2012 at 11:03 AM, Henri K. hknochi@googlemail.com wrote:

Ok i have forgotten to say, it is planned as a Controller.

the Application should connect to this controller and this should decide
which of the both clusters should be used.

i hope this description is much more better

Am Freitag, 15. Juni 2012 18:11:48 UTC+2 schrieb Ivan Brusic:

I would create two different TransportClients and specify a different
cluster.name in the individual settings.